Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
Python int() and str()
chronicburst wrote: Im not understanding the: for n in a:
I don't understand what n is representing. So I am kinda stuck on the whole thing still.
The for loop is iterating through the characters, which are stored in the variable a. With each iteration, the succeeding character is stored in variable n.
i.e. first loop: n = a[0] which is equal to '1' second loop: n = a[1] == '2' third loop: n = a[2] == '3' etc.
chronicburst wrote: Okay, so the loop is being classified as n.
I dont know what you mean by classified, but n is the iterator. Python uses lists with its for loops. You'll probably see loops that look like this:
sum+=n```
The range function creates a list comprised of the numbers (in this case) from 0 up to (but not including) 10.
As you go through the loop, the variable n points to the current spot in the list so that you can perform operations with that element.