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:
Thank you all!Very informative and much appreciated!
Regards,
Jens
On Tue, Oct 21, 2008 at 1:33 AM, wesley chun <[EMAIL PROTECTED]> wrote:
> >> def nr():
> >>nr1 = input('Enter value: ')
> >>print str(nr1).strip('nr0')
> >>
> >> The user input is always on the form "nr08756" and i'd like