In order to improve readability for your Python scripts, only use underscores for your variable names. For example:
_ = 5
__ = 9
print (_+__)
___ = "hello"
____ = "world"
print (___ + " " + ____)
Conversation
"Oh, that's stored in the variable named six underscores from the class named four underscores that you imported in the package named nine underscores."
NOT GOOD, BOSS. NOT GOOD.
I can't even imagine what I would have to type to access that variable.
1
Please tell me he's not allowed to do that in Python. I looked up the rules for naming classes and now I'm worried.
3
1
for x in range(1,1000):
globals()["_" * x] = x
>>> _
1
>>> __
2
>>> ___
3
That's just gross; not evil. If you want to be truly awful, you have to mess with name mangling to create irreconcilable collisions.
1
This makes me want to write a fun line in a useful package...
from random import shuffle
k = globals().keys()
z = globals().values()
z.shuffle()
for x in range(len(z)):
globals()[k[x]]=z[x]
StackOverflow: "I run into weird problems unless I import this first..."
1
1
1
Heck, you probably run into weird problems anyway...

