मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता १२

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×