""" Create an empty class 'Empty'. """ """ Create a class 'Coordinate' which has two attributes 'x' and 'y' initially set to 0, and no constructor. """ """ Create a class 'Circle' with an attribute 'radius' that is set with a constructor. """ """ Create a class 'Rectangle' with two attributes 'width' and 'height' with a constructor that takes a width and optionally a height. If no height is provided assume it is a square and set height to width. """ """ Create a class 'Printer' which has a constructor that takes in a list of numbers. Make sure that when calling print on the object we see the list of numbers separated with a semicolon. No semicolon at the end! e.g. print(Printer([1,2,3])) -> 1;2;3""" """ Create a class TextAnalyzer whose constructor takes in a string. Create the following methods: - character_count: which returns the number of characters (excluding whitespace) - word_count: which returns the number of words. Hint: use split, and replace to turn punctuation to spaces. - sentence_count: which returns the number of sentences. Every sentence ends with an ending punctuation. - average_word_length: which returns the average word length. - average_sentence_length: which returns the average number of words per sentence. - compute_frequency: which will return a dictionary with each key being every unique word lowercased and value being the number of times that word (case-insensitive) appears in the text. - lexical diversity: which returns number of unique words over total words (keep as proportion). - fkgl: which returns (0.39 * average sentence length) + (11.8 * (average word length / 5)) - 15.59 """ """ Create three classes: Furniture, Chair, and Screw. Furniture has a single string attribute of 'material' with a suitable constructor. Screws have a single string attribute 'head' with a suitable constructor. Chairs are Furnitures and have Screws with a suitable constructor. Create methods 'get_material' and 'get_number_screws'. """ """ Create the following four classes: GameCharacter, Warrior, Archer, Mage. GameCharacter has a single method of attack. All other classes inherit from GameCharacter and override the attack with their own print statement. Warrior prints 'Warrior attacks with a sword!', Archer prints 'Archer attacks with a bow!', and Mage prints 'Mage attacks with a staff!'. """