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
Show replies
Replying to
as long as you don't actually do this for anything other than fun. As I once read, imagine that an crazy, ax-wielding person will maintain your code, and they know where you live.
In JavaScript, emojis are valid for variable names, so there’s even more room for code legibility:
😳 = 5;
😤 = 9;
alert(😳 + 😤);
2
8
8
This is beautiful! I had no idea you could use emojis as variable names in Javascript -- this opens the door for some exciting opportunities.
1
2
2
Show replies




