Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hi, I am Melvin, your personal bot.")
- print("Let's get started!")
- print("First, can you please tell me your name?")
- users_name = input()
- print("Hi, " + users_name + ", I'm glad you've joined me today.")
- print("Can I show you how well I add numbers?")
- input1 = input("Type in any number...")
- input2 = input("Now type in another number...")
- number1 = int(input1)
- number2 = int(input2)
- result = number1 + number2
- output = str(result)
- print("That's easy " + users_name + ", " + input1 + " + " + input2 + " = " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement