Advertisement
GreatRaymondo

plusbot

May 3rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. print("Hi im Mr Biddle, im your personal bot")
  2. command = input("How can I help? ")
  3. if command == "add" or "plus":
  4. print("lets add some numbers")
  5. input1 = input("Number 1> ")
  6. input2 = input("Number 2> ")
  7. input3 = input("Number 3> ")
  8. number1 = int(input1)
  9. number2 = int(input2)
  10. number3 = int(input3)
  11. result = number1 + number2 + number3
  12. output = str(result)
  13. print(input1 + " + " + input2 + " + " + input3 + " = " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement