हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

What will be the result of the following Python code? S = [x**2 for x in range(5)]print(S) - Computer Science

Advertisements
Advertisements

प्रश्न

What will be the result of the following Python code?

S = [x**2 for x in range(5)]
print(S)

विकल्प

  • [0,1,2,4,5]

  • [0,1,4,9,16]

  • [0,1,4,9,16,25]

  • [1,4,9,16,25]

MCQ

उत्तर

[0,1,4,9,16]

shaalaa.com
Introduction to List
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 9: Lists, Tuples, Sets and Dictionary - Evaluation [पृष्ठ १६७]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
अध्याय 9 Lists, Tuples, Sets and Dictionary
Evaluation | Q 7. | पृष्ठ १६७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×