by ZanyProgrammer · 11y ago · 0 comments
For example, for beginners, it is not immediately evident that the two following code snippets are equivalent:
a = "Hello world"
b = a.lower()
print(b)
and: print("Hello world".lower())
This isn't just a problem of recognizing the simple logic...but that when you're new to code, it takes more mental energy -- at first -- to pick apart the symbols and process them efficiently. And that mental energy is largely from the same reservoir that is used to process the higher-level concepts.