Guest User

Untitled

a guest
Jan 6th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. class A(object):
  2. def __init__(self,value):
  3. self.value=value
  4.  
  5. class B(object):
  6. def __init__(self,value):
  7. self.value=value
  8.  
  9. a=A(2)
  10. b=B(3)
  11. c=5
  12. if(type(c)==int):
  13. print("c type is a int!")
  14. if(type(a)==class):
  15. print("a type is a class!")
  16.  
  17. if(type(a)==A):
  18. print("a is an A")
Add Comment
Please, Sign In to add comment