- 1

Create a list of multiples of 3 from 0 to 20.?

a =_ i for i in range(20) __i%_==0] ?

23rd Jun 2020, 9:46 AM
Abhishek Patel
Abhishek Patel - avatar
2 ответов
+ 1
for i in range(0,20): if i%3==0: print(i)#prints all multiples of 3.
23rd Jun 2020, 10:03 AM
Arctic Fox
Arctic Fox - avatar
+ 1
a = [ i for i in range(20) if i% 3 ==0]
23rd Jan 2021, 2:15 PM
siju jacob
siju jacob - avatar