Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- finished = False
- while finished == False:
- print("Hi, I am Rotellity, the Funky Maths bot.")
- command = input("How can I help?")
- if command == "add":
- print("let's add some numbers")
- input1 = input("Pick a number, any number!>")
- input2 = input("Now pick a second number>")
- number1 = int(input1)
- number2 = int(input2)
- result = number1 + number2
- output = str(result)
- print("Watch me add both numbers! " + input1 + " + " + input2 + " = " + output)
- elif command == "bye":
- finished = True
- else:
- print("Sorry, I am but a simple maths bot. I do not understand your request.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement