Hi,the code is: def nr(): nr1 = input('Enter value: ') print str(nr1).strip('nr0')
The user input is always on the form "nr08756" and i'd like to take out the "nr0" and then print the result. I can see that there is a problem with a variable looking like "pn0123" because i get: NameError: global name 'nr0123' is not defined. What is the right way to do this? Thanks!
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor