so this is the answer for this but i am not able understanding the subplot as 2nd row and we can see that the star part is in the first row so how they are giving it in a 2nd one row?
from matplotlib import pyplot as plt
x = range(7)
straight_line = [0, 1, 2, 3, 4, 5, 6]
parabola = [0, 1, 4, 9, 16, 25, 36]
cubic = [0, 1, 8, 27, 64, 125, 216]
# Subplot 1
plt.subplot(2, 1, 1)