Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started