Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import print_function
- from calc import calc
- from calc import oper2
- from calc import calcerr
- print("calc")
- calc =calc1()
- calc.add_custom("operators.json")
- calc.print_oper()
- while True:
- user = input("")
- if user == 'q':
- break
- try:
- calc.addto_q(user)
- except calcerr as Error:
- print('error', Error)
- calc.print_q()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement