Question: Write the main 1 _ student function, that takes a list of Student objects as a parameter and prints out students who are teenagers. Example
Write the mainstudent function, that takes a list of Student objects as a parameter and prints out students who are teenagers.
Example usage:
stud StudentCleo 'Adelaide', 'Adelaide', True
StudentJake 'Clovelly Park', 'Flinders', True
StudentCallum 'Blackwood', 'Flinders', True
StudentDavid 'Blackwood', 'Flinders', False
StudentClaudia 'Blackwood', 'Flinders', False
StudentMona 'Royal Park', 'Adelaide', False
StudentClay 'Clovelly Park', 'Flinders', True
StudentAmy 'Blackwood', 'Flinders', False
StudentWilliam 'Clovelly Park', 'Adelaide', False
StudentLuka 'Royal Park', 'Adelaide', True
mainstudentstud
output:
This is student Clay, years old, studying at Flinders University.
This is student Luka, years old, studying at Adelaide University.
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
