10) b. Creating a Simple Class Examples




Arlo has started to learn python. He is learning about classes and has been given an assignment by her professor to create a class simulating a student. The professor has given Arlo full independence in the number and names of attributes. Please create an empty Student class for Arlo. He will learn and fill up the details later.

1
Output:




Dale is a zoologist and studies the animal kingdom. He is also studying python and wants to denote the animal kingdom with a class. He knows that every animal kingdom has a species name, description, life expectancy and other attributes but as of now he wants to just denote the important ones. Write the class for him and give dummy values in all the attributes.

1
Output: