+ 1
Ai remember conversation problem
conv = ["Hello", "Hi", "How are you?", "Good!"] input1 = input(">: ") for x in range(1,int(len(conv))): if (conv[x] == input1): print(conv[x+1]) Can someone explain why this wont work? When i type Hello it should say Hi... But it doesnât!!! Thx
2 Answers
+ 2
Fixed it, if anyone else has a similar problem just remember lists start at object 0 not object 1
0
No problem