Zum Hauptinhalt springen
EILMELDUNGENLIVE

🔧 Programmierung
⚡ iShareStuff Intelligence
📰 VERIFIED NEWS INTELLIGENCE ID: #3674877

🔧 "5 Python mistakes I keep making as a beginner (and how I fixed them)"

⏱️ vor 14h 50m (04.08.2026 um 13:33 Uhr) 📖 4 Min. Lesezeit 📂 🔧 Programmierung 📡 Feed 🔗 Quelle: dev.to
Schrift:

## 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:
return item

show_items(["apple", "banana", "cherry"])

Run it, and... nothing prints. Why? return doesn't just output a value it...

🔧 Developer Intelligence weitergeben – Wissen teilen

Verwandte Videos & News · KI-empfohlen via Levenshtein-Match

Constraint Satisfaction Problems in Python
🎯 43% Match
Constraint Satisfaction Problems in Python
📆 27.07.2022 um 19:14 Uhr ▶ Abspielen
Why Do I Need to Know Python --  I'm a Pandas User  || James Powell
🎯 41% Match
Why Do I Need to Know Python -- I'm a Pandas User || James Powell
📆 07.02.2023 um 00:00 Uhr ▶ Abspielen
Getting Started with Python in Visual Studio Code
🎯 41% Match
Getting Started with Python in Visual Studio Code
📆 05.12.2019 um 21:41 Uhr ▶ Abspielen
Time Series Analysis In Python
🎯 41% Match
Time Series Analysis In Python
📆 09.02.2018 um 21:00 Uhr ▶ Abspielen
The Lava Lamps That Help Keep The Internet Secure
🎯 41% Match
The Lava Lamps That Help Keep The Internet Secure
📆 06.11.2017 um 17:00 Uhr ▶ Abspielen
Classes | More Python for Beginners [6 of 20]
🎯 39% Match
Classes | More Python for Beginners [6 of 20]
📆 28.04.2020 um 21:30 Uhr ▶ Abspielen
How to Make A Deck of Cards With Python Using Object Oriented Programming (OOP)
🎯 38% Match
How to Make A Deck of Cards With Python Using Object Oriented Programming (OOP)
📆 16.05.2021 um 00:30 Uhr ▶ Abspielen
Decorators | Python for Beginners [42 of 44]
🎯 37% Match
Decorators | Python for Beginners [42 of 44]
📆 19.09.2019 um 18:47 Uhr ▶ Abspielen

← Horizontal scrollen für mehr Empfehlungen → · Klick auf ein Video zum Abspielen im Hauptplayer