Hello overflow's community, today I was trying to create a project of a chat bot just in order to learn more about python, but I've faced a problem when I was creating a loop and didn't know how to solve it and tried to search the web and this website but i didn't find anything, here's my code:
l_greeting = ["hello", "Hello", "HELLO", "hELLO", "مرحبا"]
print ("Welcome to sami's chatting bot")
greeting = str(input("Feel free to chat the bot: "))
if greeting in l_greeting:
print("Hello :D ")
else:
print ("I can't understand what you are saying, try again without
using caps")
break
and what I really want is making the code run from the point where the word is not in the list of my words and to make the script continue where it has left after that word.