01 -Use of Variables in a simple chatbot.py

Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...

Code Snippet

def main():
          name=(input("Hello there - what is your name?"))
          print("What a lovely name ..." + name)
          movie=input("Favourite movie?")
          print("Gosh, I love that movie ...."+ movie + "...is briliant")
          food=input("....so, what sort of food do you like?")
          print(food + "....mmmmm. delicious")     


Try it yourself