Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hi, I am Marvin, your personal bot.")
- users_name = input("What is your name? ")
- print("Welcome " + users_name+"!")
- print("Let's add two numbers.")
- input1 = input("Number 1: ")
- input2 = input("Number 2: ")
- number1 = int(input1)
- number2 = int(input2)
- result1 = number1 + number2
- output1 = str(result1)
- print(" ")
- print("So.... " + input1 + " + " + input2 + " = " + output1)
- print(" ")
- print("That's great!")
- print(" ")
- input3 = input("Let's add a 3rd number: ")
- number3 = int(input3)
- result2 = number1 + number2 + number3
- output2 = str(result2)
- print(" ")
- print("And the sum of " + input1 + " + " + input2+ " + " + input3 + " is " + output2)
- print(" ")
- print("Woo Hoo for You!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement