Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Howdy, my name's Evan.")
- user_name = input("What's yours? ")
- print("Hi " + user_name + ", " + "let's do some sums!")
- print("We'll start with dividing.")
- input1 = input("Tell me a number... ")
- input2 = input("Great. Now give me another one... ")
- print("Thanks. Now the dividing.")
- number1 = int(input1)
- number2 = int(input2)
- result = number1 / number2
- output = str(result)
- print(input1 + " / " + input2 + " = " + output)
- print("I feel in the mood to multiply now!")
- input3 = input("Let's have another number... ")
- input4 = input("Perfect. And one more... ")
- print("Awesome. Let's multiply!")
- number3 = int(input3)
- number4 = int(input4)
- result = number3 * number4
- output = str(result)
- print(input3 + " * " + input4 + " = " + output)
- print("Whoop whoop, I've only gone and done it!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement