Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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