Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. >>> from sys import mod
  2. Traceback (most recent call last):
  3. File "<stdin>", line 1, in <module>
  4. ImportError: cannot import name mod
  5.  
  6. def foo(): pass
  7. bar = foo
  8.  
  9. >>> import demo
  10. >>> from demo import *
  11. >>> demo.foo is foo
  12. True
  13. >>> id(demo.foo) == id(foo)
  14. True
  15. >>> demo.bar is foo
  16. True
  17.  
  18. # define modulus f
  19. def mod(a,b):
  20. return b % a
  21.  
  22. print mod(5,2)
  23.  
  24. modulus=mod
  25. print modulus(5,2)
  26.  
  27. myat=math.atanh
  28.  
  29. myat(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement