Sep-13-2018, 10:01 AM
Hey guys , I have started python developer programming course since 1 week ago and now i'm facing a problem with advanced for loops section I was wondering maybe you can help me in this .
The problem is I can't understand the syntax of this and can't figure it out what this code is supposed to run for us actually !
The problem is I can't understand the syntax of this and can't figure it out what this code is supposed to run for us actually !
number = "9,234,456,123,456,789" cleanedNumber = '' for char in number: if char in '0123456789': cleanedNumber = cleanedNumber + char newNumber = int(cleanedNumber) print("the Number is {}".format(newNumber)) for state in {"not pinin'","no more", "a stiff", "bereft or life"}: print("This parrot is "+ state)