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
4 Respostas
+ 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])
+ 2
Show your own attempt😑 We're not gonna do your homework
+ 2
uuuh have you tried ?