I have a small problem in a bigger code... I can reproduce it in the following example
def graph(form):
if form == single:
print 1
if form == multi:
print 2
When I type
graph(single)
I get
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-146-c730e3c6bbf1> in <module>()
----> 1 graph(single)
<ipython-input-143-cf1ff0a5e57e> in graph(form)
5 if form == single:
6 print 1
----> 7 if form == multi:
8 print 2
9
NameError: global name 'multi' is not defined
1
Where is my mistake?