r/PythonLearning • • 7h ago

Python library idea

Python learners and programmers: What's your biggest coding difficulty?

When using Python, what small problem or task do you find difficult or annoying?

Is there any function or simple tool you wish Python had to make coding easier?

I'm planning to build a small Python library based on real problems people face. I'd love to hear your experiences!

6 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/recentAd1666 4h ago

If i understand well, you want to iterate a list, then when first trigger you doSomething (only once for the whole process), then for other number just doSomethingElse ?

1

u/Fun_Army2398 4h ago

Yes. Treat every element of the list the same, except for the first time some condition is met.