In the given program, two objects of the Students
class are created:
student34
is created with the name "Maria" and grade 10.student35
is created with the name "Jane" and grade 9.
Therefore, the correct response is "two."
Consider this program:
class Students:
def __init__(self, name, grade):
self.name = name
self.grade = grade
student34 = Students("Maria", 10)
student35 = Students("Jane", 9)
How many objects are created?
(1 point)
Responses
none
none
one
one
two
two
three
three
Skip to navigation
1 answer
In the given program, two objects of the Students
class are created:
student34
is created with the name "Maria" and grade 10.student35
is created with the name "Jane" and grade 9.Therefore, the correct response is "two."