How to add a condition to the list generator?
📁 List, Advanced Python Topics, work
I tried to do so, but it does not work
a = [ int span> ( for i in range ( 5 ) if i % 10 == 0 ] that is, you need to add a condition so that only the numbers divisible by 10 without a remainder are added
No answers yet.
Log in to leave an answer