Quote:Original post by Promit
It's bad code.
I hope I am never forced to work with such a terrible programmer who would actually write that kind of code. In fact, this is a fairly strong argument in favor of Python; it prevents people from writing code with such incredibly moronic formatting.
>>> for letter in range(26):... globals()[chr(ord('a') + letter)] = letter...>>> x = b>>> if x==b:a=True;b=False;c+=d;a=5*j-3...>>> [globals()[var] for var in 'abcdefghijklmnopqrstuvwxyz'][42, False, 5, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,21, 22, 1, 24, 25]>>>
[grin]