Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A(object):
- def __init__(self,value):
- self.value=value
- class B(object):
- def __init__(self,value):
- self.value=value
- a=A(2)
- b=B(3)
- c=5
- if(type(c)==int):
- print("c type is a int!")
- if(type(a)==class):
- print("a type is a class!")
- if(type(a)==A):
- print("a is an A")
Add Comment
Please, Sign In to add comment