Question: 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 in Python Create a class that takes the following

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 75kg

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!