0

How to write program to print first 10 odd numbers in descending order using for loop

pls help me for this question ASAP pls pls

18th Sep 2019, 3:59 AM
Rushil Jariwala
Rushil Jariwala - avatar
4 Respuestas
+ 3
Example numbers = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24] numbers.sort(reverse = True) odd_numbers = [num for num in numbers if num % 2 == 1] print(odd_numbers[:10])
18th Sep 2019, 4:39 AM
Phurinat Puekkham
Phurinat Puekkham - avatar
+ 2
Show your own attempt😑 We're not gonna do your homework
18th Sep 2019, 5:08 AM
Trigger
Trigger - avatar
+ 2
uuuh have you tried ?
18th Sep 2019, 5:28 AM
Choe
Choe - avatar