In [3]:
VERBOSE=True
def vprintt(*txt):
    if VERBOSE:
        print(txt)
    return


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-3-3edb01588636> in <module>()
----> 1 VERBOSE=Treu
      2 def vprintt(*txt):
      3     if VERBOSE:
      4         print(txt)
      5     return

NameError: name 'Treu' is not defined

In [2]:
vprintt("1",2)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-95afdd019952> in <module>()
----> 1 vprintt("1",2)

<ipython-input-1-11601758ed88> in vprintt(*txt)
      1 def vprintt(*txt):
----> 2     if VERBOSE:
      3         print(txt)
      4     return

NameError: global name 'VERBOSE' is not defined

In [ ]: