hey.. i have been learning python for like a month now...
(using zed shaw's lpthw)
(i'm in ex43 so i "THINK NOT SURE" that should be enough)
i know that i can make an ai chatbot
using this infact i made one but cmn there should be any other
way to create one.. cuz i can't(i don't think anyone can) add every possible text for just hi and bye......
so all i am asking is,"is there any way to create an ai chatbot
with some small (smaller than this one) piece of code???????"
(using zed shaw's lpthw)
(i'm in ex43 so i "THINK NOT SURE" that should be enough)
i know that i can make an ai chatbot
Code:
while True:
msg = raw_input(">>>>>")
if msg in "hi""hello""sup""hey":
print "hello"
elif msg in "bye""gotta go""bye bye""byebye""bb""b b"" bb"" b b"" b b ""see you later""see you""see ya""cu""see u""c you""seeu""cyou":
print "so long"
elif msg in "what\'s up""what up""sup""how you doing""how you doin\'""how you doin""how are you""how are u""how r u""how ru""howru""howr u":
print "i\'m fine"
else:
print "some times i don\'t understand you"
way to create one.. cuz i can't(i don't think anyone can) add every possible text for just hi and bye......
so all i am asking is,"is there any way to create an ai chatbot
with some small (smaller than this one) piece of code???????"
Comment