Read the following code that implements a parent class and c…

Read the following code that implements a parent class and child class. Identify ALL line numbers that contain errors and briefly explain what is wrong with each line. 1.  class Device:2.      def __init__(self, name):3.          self.name = name4.     5.      def make_sound():6.          print(“Some generic sound”)7. 8.  class Speaker(Device):9.      def __init__(self, name, breed):10.         super().__init__(self, name)11.         self.breed = breed12.     13.     def make_sound(music_name):14.         super.make_sound()15.         print(f”Music started: {music_name}”)16. 17. my_speaker = Speaker(“Buddy”, “Golden Retriever”)18. my_speaker.make_sound(“Never Gonna Give You Up”)

In Python, write a nested for loop (i.e. a loop inside a loo…

In Python, write a nested for loop (i.e. a loop inside a loop) that iterates through each character in the string ‘tree’ and produces the following output. Be sure to use the string “tree” in the loop. t tt ttt rr rrr rrrr eee eeee eeeee eeee eeeee eeeeee