Question: Python Fix the faulty function below named draw_boat (size) that takes an integer as a parameter and draws a picture of a boat using X,
Python
Fix the faulty function below named draw_boat (size) that takes an integer as a parameter and draws a picture of a boat using "X", -and characters. Time left 2:51:18 The minimum size of the boat is 8. If a size value of less than 8 is passed, then nothing will be printed. If the function is called without any parameters then the default value of 8 is used for size. The boat is composed of a mast, followed by a hull. A mast (1.e., a vertical pole) consisting of a vertical column of 'X' characters of height equal to size // 3 (round down) is centered horizontally in the hull (i.e., the main body) of the boat. If the size of the boat is an even number, then the mast will be located slightly to the left of the centre. The hull consists of 3 rows of text. o The first row displays size number of 'X' characters. o The second row is 2 characters shorter than the first row, centred below the first row, has a single 'X' at either end, and is filled with '-' characters. o The third row is 2 characters shorter than the second row, centred below the previous rows, and consists of 'X' characters. For example, the smallest boat, with a size of 8, would appear as follows X X XXXXXXXX X----X XXXX A faulty solution has been provided below. Identify the faults and submit a corrected version of this code. For example: Test Result draw_boat (10) X xxxxxxxxxx X------ XXXXXX draw_boat (9) X XXXXXXXXX X----- Xxxxx Answer: (penalty regime: 0, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50 %) Reset answer 1 def draw_boat(size=8): 2 if size