DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+6 =
Submit