text = "This is some generic text"
index = 0
while index < len(text):
print(text[index])
index += 1
text = "This is some generic text"
for character in text:
print(character)
text = "This is some generic text"
[print(character)
for character in text]
text = "This is some generic text"
[print(c) for c in text]
[print(c)
for c in
"This is some generic text"]
Zen of Python
Zen of Python
The Most Misunderstood Line
In
There should be one--
and preferably only one
--obvious way to do it.
There should be one--
and preferably only one
--obvious way to do it.
If there's more than one
way, what's the most
obvious?
The abstractions you
choose communicate
intent to the future
Iteration
Dataclasses vs. Classes
Enumerations vs. Literals
Every choice is an
abstraction
The abstractions you
choose communicate
intent to the future
@PatViaforever
Pat Viafore
Robust Python

The Most Misunderstood Line In Zen Of Python.pdf