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 mystudent. Then, read three values from input into mystudent's attributes in the following order:
age int
id int
birthplace str
Click here for example
class StudentData:
definitself:
self.age
self.id
self.birthplace 'unknown'
Your code goes here
printStudent data: endI
print mystudent.age years old, end
print mystudent.id end
print mystudent. birthplace
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
