Troubles with global variables

Janko Hauser jhauser at ifm.uni-kiel.de
Sun Oct 14 14:54:21 EDT 2001


Ah, silly me. The just posted example had the answer. You are not
printing the variables, but a constant string. Use this line as the
menu line, and perhaps look up the manual for string formatting rules.

print 'Menu: \n1) Change a: %s\n2) Change b: %s' % (a,b)

HTH,
__Janko
-- 
  Institut fuer Meereskunde             phone: 49-431-597 3989
  Dept. Theoretical Oceanography        fax  : 49-431-565876
  Duesternbrooker Weg 20                email: jhauser at ifm.uni-kiel.de
  24105 Kiel, Germany



More information about the Python-list mailing list