Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if variable is defined in python

try: x
except NameError: some_fallback_operation(  )
else: some_operation(x)
Source by www.oreilly.com #
 
PREVIOUS NEXT
Tagged: #check #variable #defined #python
ADD COMMENT
Topic
Name
8+6 =