Question: Create an instance of the StudentData class called my _ student. Then, read three values from input into my _ student's attributes in the following

Create an instance of the StudentData class called my_student. Then, read three values from input into my_student's attributes in the following order:
age (int)
id (int)
birthplace (str)
Click here for example
class StudentData:
def__init__(self):
self.age =0
self.id =0
self.birthplace = 'unknown'
'"' Your code goes here "'
8
print('Student data:', end='I')
print ( my_student.age } years old, ', end='')
print ( my_student.id},', end='')
print ( my_student. birthplace }')
 Create an instance of the StudentData class called my_student. Then, read

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!