Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_the_type(value):
- if value== "NULL" or value=="":
- return(type(None))
- elif (value=="{"):
- return (type([]))
- elif isinstance(value,(int)):
- return type(1))
- elif isinstance(value,(float)):
- return(type(1.1))
- else:
- return (type("bla"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement