Jan-24-2020, 05:27 PM
There is no char datatype. Char is temporary name which is used during iteration. This can any name which is compliant with Python naming convention. For better readability it’s common to use descriptive names “char” or “letter” if iterating over letters, “i” or “num” while iterating over integers etc.
Readability-wise it should be quite obvious what is going on:
Readability-wise it should be quite obvious what is going on:
[char for char in word] [num * num for num in nums] [word for word in sentence]
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.