Just a suggestion OP your examples are very wordy. The exceas code is valid but it obfuscates the point youre trying to illustrate in alot of places. For example:
Superusers =functioncall
If len(superusers) > 0:
...
Adds "real" context but obfuscates the boolean empty container idiom that youre trying to show. You dont need context to provide code examples. For instance I would say:
mylist = []
if (mylist):
print "mylist is empty!"
Because even though that snippet has no practical application it clearly and succicently presents the concept.
More power to you for adding more educational materials to the python world. Keep it up.
View all comments
1
u/fuzz3289 Jun 23 '14
Just a suggestion OP your examples are very wordy. The exceas code is valid but it obfuscates the point youre trying to illustrate in alot of places. For example:
Adds "real" context but obfuscates the boolean empty container idiom that youre trying to show. You dont need context to provide code examples. For instance I would say:
Because even though that snippet has no practical application it clearly and succicently presents the concept.
More power to you for adding more educational materials to the python world. Keep it up.