## 1. Using return instead of print inside a loop
This one bit me early on. I wanted to print every item in a list, so I wrote something like this:
python
def show_items(items):
for item in items:
## 1. Using return instead of print inside a loop This one bit me early on. I wanted to print every...
## 1. Using return instead of print inside a loop
This one bit me early on. I wanted to print every item in a list, so I wrote something like this:
python
def show_items(items):
for item in items:

Lists are the first data structure you learn in Python. They are also the source of the most...

Python is famous for its readability, but there’s a big gap between “working code” and “elegant,...

If I could go back to when I wrote my first line of code, these are the five mistakes I’d avoid...

I started this session with a challenge. "Jose," I said, "print the names of all 40 students in...

Python Itertools: 10 Tricks for Cleaner Code tags: python, programming, tips,...

Part 6 of a beginner-friendly series on learning Python from scratch. In Part 5, we learned to...