Answered step by step
Verified Expert Solution
Question
1 Approved Answer
create a class in Python Create a class that takes the following four arguments for a particular football player: name: str age: int height: int
create a class in Python
Create a class that takes the following four arguments for a particular football player: name: str age: int height: int weight: int Also, create three functions for the class that returns the following strings: get_age () returns " name is age age" get_height() returns " name is height cm" get_weight() returns " name weighs weight kg" pl = player ("David Jones", 25, 175, 75) pl.get_age() - "David Jones is age 25" pl.get_height() "David Jones is 175cm" pl.get_weight() "David Jones weighs 75kgStep 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