Report Bug

Qus

What will be the output of the following code snippet?

numbers = (4, 7, 19, 2, 89, 45, 72, 22)
sorted_numbers = sorted(numbers)
odd_numbers = [x for x in sorted_numbers if x% 2!=0]
print(odd_numbers)
Qus

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

numbers = (4, 7, 19, 2, 89, 45, 72, 22)
sorted_numbers = sorted(numbers)
odd_numbers = [x for x in sorted_numbers if x% 2!=0]
print(odd_numbers)


A. [7, 19, 45, 89]
B. [2, 4, 22, 72]
C. [4, 7, 19, 2, 89, 45, 72, 22]
D. [24, 7, 19, 22, 45, 72, 89]


Solution
A. [7, 19, 45, 89]



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad