MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1lxbduq/code_wont_print/n3gjx9e/?context=3
r/PythonLearning • u/Ill-Diet-7719 • Jul 11 '25
What's the error?(I'm a newbie)
86 comments sorted by
View all comments
1
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]
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]