Facebook
From Walloping Motmot, 3 Years ago, written in Python.
Embed
Download Paste or View Raw
Hits: 67
  1. print("Hello, I'm Marvin, your personal bot.")
  2. user_name= input("What is your name?")
  3. print("Welcome",user_name)
  4. command = input("How can I help")
  5. if command == "add" or command== "Add":
  6.     print("Lets add 3 numbers")
  7.     Number1 = int(input("Enter a number"))
  8.     Number2 = int(input("Enter a number"))
  9.     Number3 = int(input("Enter a number"))
  10.     Result = Number1 + Number2 + Number3
  11.     print("The answer is",Result)