Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions