Challange | Sololearn: Learn to code for FREE!

-1

Challange

Take this challenge: Write a class 'Person', only the first 2 attributes 'name' and 'sex' are mandatory, the other attributes of the instance are determined on the fly during the creation of the instance by the programmer-user such that: peter = Person("Peter", "male", job="teacher", phone="1234345", height=1.65) mary = Person("Mary","female") john = Person ("John", "male", hobby="painting", weight=60, favorite_language="python", nationality="USA") print(peter) print(mary) print(john) console output: name':

3/27/2018 8:08:38 AM

George Kariuki

1 Answer

New Answer

+2

Please post you challenges as Assignment in Lesson Factory :)