Mar-19-2018, 04:09 PM
(Mar-19-2018, 04:00 PM)buran Wrote: you need to check it against strThank you so much again... yea.. it does have that "name error". I have shared the pdb version also- shows other errors like "SyntaxError: unexpected EOF while parsing" . what should i do to rectify it?l[0]!= '0': # do something else: # do something eseorif l[0].startswith('0'): # do something if it start with 0 else: # do something elsenote that your code has other problems too - e.g. there could be case when b is not defined on line #23 to name one...