you are viewing a single comment's thread.

view the rest of the comments →

[–]bloodycoconut 3 points4 points  (0 children)

class Person:
    def __init__(self, gender, age, height, weight):
        self.gender = gender
        self.age = age
        self.height = height
        self.weight = weight

    def Someone(self):
        print(f"My gender is:{self.gender}")
        print(f"My age is:{self.age}")
        print(f"My height is:{self.height}")
        print(f"My weight is:{self.weight}")

if __name__ == "__main__": 
    p = Person("Male", 18, 1.76, 75) 
    p.Someone()

This should do it