futurebird, Did you know in python you can stick a for loop in the list brackets and just BAM have a list? No “append” check it:
l=[chr(i+65) for i in range(0,26)]
print(l)> [‘A’, ‘B’, ‘C’, … , ‘Z’]
(it will be the letters A-Z since the unicode for the capital letter starts at 65, chr renders these numbers as letters.)
Is that classy? For some reason this neat little feature isn’t really taught. I guess with a loop and appending you have not flexibility— but still this is cool. #python #coding #tricks