Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Managed to work out multiplication and division but am still getting syntax errors with triple addition.
  2.  
  3. print("Hi I'm Glenn your personal calculator.")
  4. print("Lets divide some numbers")
  5. input1 = input("number 1> ")
  6. input2 = input("number 2> ")
  7. number1 = int(input1)
  8. number2 = int(input2)
  9. result = number1 / number2
  10. print (result)
  11. output = str(result)
  12. print (input1 + "รท" + input2 + " = " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement