Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. run = True
  2. print("Type quit to exit")
  3.  
  4.  
  5. def perform_math():
  6. a = input("Enter your equation:")
  7. if a == "quit":
  8. global run = True
  9. else:
  10. print(a)
  11.  
  12.  
  13. while run:
  14. perform_math()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement