Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hi, I am Khamisi, your personal bot.")
- operation=["sum","add","plus","total","+"]
- command=input("How can I help? ")
- if command in operation:
- input1 = input("Number 1> ")
- input2 = input("Number 2> ")
- number1 = int(input1)
- number2 = int(input2)
- result = number1+number2
- output = str(result)
- print(input1+" "+"+"+" "+input2+" "+"="+" "+output)
- else:
- print("This is how we can add two numbers")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement