Advertisement
jensyao

Same jupyter notebook, runs fine, imports correctly

Feb 9th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. from __future__ import print_function
  2. from calc import calc
  3. from calc import oper2
  4. from calc import calcerr
  5.  
  6.  
  7. print("calc")
  8. calc =calc1()
  9. calc.add_custom("operators.json")
  10. calc.print_oper()
  11. while True:
  12.     user = input("")
  13.     if user == 'q':
  14.         break
  15.     try:
  16.         calc.addto_q(user)
  17.     except calcerr as Error:
  18.         print('error', Error)
  19.     calc.print_q()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement