Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Welcome, I'm Pythy, your personal bot")
- command = input("What would you like to do? ")
- if command == 'add' or command == 'plus':
- input1 = input('Enter number 1: \r >')
- input2 = input('Enter number 2: \r >')
- number1 = int(input1)
- number2 = int(input2)
- result = number1 + number2
- print(input1 + " + " + input2 + " = " + str(result))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement