DEV Community

TANYA LYOP ACHAYI
TANYA LYOP ACHAYI

Posted on

Day 11 of 100.


Today I learned about for loops. They make Python repeat actions without me writing the same code over and over.

I tried counting numbers and even looping through my hobbies list. It feels like teaching Python to keep going until the job is done.

One loop, many results. That’s efficiency!🤭🤗

PythonZeroToHeroStudent

100DaysOfPython

ForLoops

Top comments (2)

Collapse
 
daemonic01 profile image
Dominik Kopócs • Edited

One of the things I love Python are list comprehensions:

[print("I enjoy", a) for a in ["coding", "dancing", "traveling"]]
Enter fullscreen mode Exit fullscreen mode

These are compact, smart and cool little guys... 😄

Collapse
 
lyop_achayi profile image
TANYA LYOP ACHAYI

I will get there... 👏🏾😄