Create a class that represents phone
Create an instance of it and assign it to ph
Assign three attributes to it, model, price and year, with values a string, a float and an integer respectively.
Create one class, Dog.
Create a dog, dad, with name: str attribute
Create a dog, puppy, with name: str and parent: Dog attributes
Create two classes, Library and Book.
Create a library, library and add some books to library.books dictionary
whose keys are characters and values are list of books whose title start with that character.
Example:
{'a': [<Book whose title is 'Ali baba'>, ...], 'o': [<Book whose title is 'Of Mice and Men'>, ...]}
Add a new book that starts with 's'.
Print the first book that starts with 's'.
Create two classes, Market and Product.
Create four products and assign a name and a price to each.
Create two markets and add some products to their products: list attribute.
Print number of products of the first market.
Print total product value of the second market.
Create two classes, Bird and Nest.
Create a bird, with species: str and nest: Nest attributes.
Create two classes, Zoo and Animal.
Create some animals with one attribute, name.
Create a zoo and add created animals to its animals: set attribute.
Add one more animal to the zoo.
Create classes Movie, Director, and Actor.
Create a director, d with name attribute.
Create an actor, a, with name attribute.
Create a movie, m, with title: str, director: Director and main_actor: Actor attributes
Create a class, Cup
Create a cup, c, with two attributes, color and volume.
Change c's color
Add 50 to c's volume
Create a class, Fruit
Create a fruit, f, with one attribute, type.
Change f's type
Create a class, Bottle
Create a bottle, b, with three attributes color: str, capacity: float, and open: bool.
Add 0.5 to b's capacity