Answered step by step
Verified Expert Solution
Link Copied!

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 main1_student function, that takes a list of Student objects as a parameter and prints out students who are teenagers.
Example usage:
>> stud =[Student('Cleo',21, 'Adelaide', 'Adelaide', 218918, True),
Student('Jake',20, 'Clovelly Park', 'Flinders', 218121, True),
Student('Callum',22, 'Blackwood', 'Flinders', 218958, True),
Student('David',24, 'Blackwood', 'Flinders', 218432, False),
Student('Claudia',26, 'Blackwood', 'Flinders', 218301, False),
Student('Mona',23, 'Royal Park', 'Adelaide', 218321, False),
Student('Clay',18, 'Clovelly Park', 'Flinders', 218900, True),
Student('Amy',21, 'Blackwood', 'Flinders', 218200, False),
Student('William',20, 'Clovelly Park', 'Adelaide', 218761, False),
Student('Luka',19, 'Royal Park', 'Adelaide', 218311, True)]
>> main1_student(stud)
output:
This is student Clay, 18 years old, studying at Flinders University.
This is student Luka, 19 years old, studying at Adelaide University.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

2. What stages are involved in identifying market segments?

Answered: 1 week ago