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

Which of the following is the output of the following program? class Student: def __init__(self, name): self.name=name print (self.name) S=Student(“Tamil”) - Computer Science

Advertisements
Advertisements

प्रश्न

Which of the following is the output of the following program?

class Student:
 def __init__(self, name):
 self.name=name
 print (self.name)
 S=Student(“Tamil”)

पर्याय

  • Error

  • Tamil

  • name

  • self

MCQ

उत्तर

Tamil

shaalaa.com
Sample Programs to Illustrate Classes and Objects
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 10: Python Classes and objects - Evaluation [पृष्ठ १८७]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
पाठ 10 Python Classes and objects
Evaluation | Q 8. | पृष्ठ १८७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×