r/PythonLearning • • Jul 11 '25

Code won't print

Post image

What's the error?(I'm a newbie)

115 Upvotes

86 comments sorted by

View all comments

1

u/Owly_chouette Jul 16 '25

don't forget to save your file.

If you want to improve your code you could use list comprehension:

[i for i in range(1,10) if i % 2 == 0]