Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. def get_the_type(value):
  2.     if value== "NULL" or value=="":
  3.         return(type(None))
  4.     elif (value=="{"):
  5.         return (type([]))
  6.     elif isinstance(value,(int)):
  7.         return type(1))
  8.     elif isinstance(value,(float)):
  9.         return(type(1.1))
  10.     else:
  11.         return (type("bla"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement