Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hi, I'm Marvin, your personal bot.")
- user_name = input("What's your name?")
- print("Hi " + user_name + " and welcome.")
- print("Let's multiply some numbers.")
- input1=input("Number1 >")
- input2=input("Number2 >")
- input3=input("Number3 >")
- number1=int(input1)
- number2=int(input2)
- number3=int(input3)
- result=number1*number2*number3
- output=str(result)
- print("Multiplying 2, 3 and 4 together gives you " + output)
- print ("Well done. Now that we've done a multiplication together, let's try to divide some numbers. We will keep them whole numbers for now.")
- input4=input("Number4 >")
- input5=input("Number5 >")
- number4=int(input4)
- number5=int(input5)
- result=number4/number5
- output=str(result)
- print("The answer to dividing 10 by 2 is " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement