+ 1
Is this question is wrong?...i am not able to mkve ahead
8 Respuestas
+ 3
class Student:
def __init__
(self, name):
self.name = name
test = Student("Bob"):
+ 1
It worked when underscored twice on either side on 'init' strange!!
0
which one??
0
Fill in the blanks to create a class and its constructor, taking one argument and assigning it to the "name" attribute. Then create an object of the class.
Student:
def
(self, name):
self
= name
test = Student("Bob"
this one?
0
I stuck on this one too
0
class Student:
def_init_(self,name):
self.name=name
test=Student("Bob"):
0
Fill in the blanks to create a class and its constructor, taking one argument and assigning it to the "name" attribute. Then create an object of the class.
class Student:
def __init__
(self, name):
self.name = name
test = Student("Bob"):
=----------------------=============
underscope in two it can work
0
no init is not working and i stuck in this one