Avatar ·

How to add a condition to the list generator?

📁 список, python, работа

I tried to do so, but it does not work

  a = [ int  ( for  i  in   range  ( 5 )  if  i %  10  ==  0 ]     

that is, you need to add a condition so that only the numbers are added by 10 without a trace