Advertisement
HBSB

Python Programming Pi101 1.14 Challenge

Nov 19th, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. print("Hi, I'm Marvin, your personal bot.")
  2. user_name = input("What's your name?")
  3. print("Hi " + user_name + " and welcome.")
  4. print("Let's multiply some numbers.")
  5. input1=input("Number1 >")
  6. input2=input("Number2 >")
  7. input3=input("Number3 >")
  8. number1=int(input1)
  9. number2=int(input2)
  10. number3=int(input3)
  11. result=number1*number2*number3
  12. output=str(result)
  13. print("Multiplying 2, 3 and 4 together gives you " + output)
  14. 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.")
  15. input4=input("Number4 >")
  16. input5=input("Number5 >")
  17. number4=int(input4)
  18. number5=int(input5)
  19. result=number4/number5
  20. output=str(result)
  21. print("The answer to dividing 10 by 2 is " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement