generate functionThu, 12 Jan 2023

Create a class called 'Person' that has the following properties: name, height, weight, gender, job Display the persons height, weight, gender and job if the user specifies the persons name.

class Person: def __init__(self, name, height, weight, gender, job): = name self.height = height self.weight = weight self.gender = gender self.job = job p = Person("Dave", "6'2", "190lbs", "male", "teacher") print(, p.height, p.weight, p.gender, p.job)

Questions about programming?Chat with your personal AI assistant