+ 2

Create a list of multiples of 7 from 7 to 70 without loops?

try more solutions without loops

21st Mar 2018, 10:31 PM
Anil
Anil - avatar
16 Respuestas
+ 6
print(list(map(lambda x: x*7, list(range(10)))))
22nd Mar 2018, 8:00 AM
Yash✳️
Yash✳️ - avatar
+ 6
^ this is a loop but comprehended
22nd Mar 2018, 6:21 AM
Yash✳️
Yash✳️ - avatar
21st Mar 2018, 11:23 PM
Ian Ault
Ian Ault - avatar
+ 5
Does this work?
21st Mar 2018, 11:23 PM
Ian Ault
Ian Ault - avatar
+ 4
Is it part of the challenge or is it necessary for the situation?
21st Mar 2018, 11:20 PM
Ian Ault
Ian Ault - avatar
+ 4
a=[i for i in range(7,71) if i%7==0]
22nd Mar 2018, 4:19 AM
®️ahul Mathews™️
®️ahul Mathews™️ - avatar
21st Mar 2018, 11:13 PM
Ian Ault
Ian Ault - avatar
+ 3
I would just like a reason to not use loops?
21st Mar 2018, 11:20 PM
Ian Ault
Ian Ault - avatar
+ 3
super yash
22nd Mar 2018, 8:13 AM
Anil
Anil - avatar
+ 2
why?
21st Mar 2018, 11:15 PM
Ian Ault
Ian Ault - avatar
+ 1
alternative solution please.
21st Mar 2018, 11:11 PM
Anil
Anil - avatar
+ 1
I need a solution without loops.
21st Mar 2018, 11:14 PM
Anil
Anil - avatar
+ 1
could you please solve it?
21st Mar 2018, 11:17 PM
Anil
Anil - avatar
+ 1
you can try one more solution without loops
22nd Mar 2018, 2:38 AM
Anil
Anil - avatar