Computer Science, asked by XxTheQuestionerxX, 1 month ago

What Is Output Of Following Python C.ode?
import numpy as np
import matplotlib.pyplot as plt
data=[[5,25,45,20], [8,13,29,27], [9,29,27,39]]
x=np.arange(4)
plt.plot(x,data[0],color='b',label='range1')
plt.plot(x,data[1],color='g',label='range2')
plt.plot(x,data[2],color='r',label='range3')
plt.legend(loc='upper left')
plt.title("MultiRange Line Chart")
plt.xlabel('X')
plt.ylabel('Y')
plt.show()

Answers

Answered by Anonymous
21

Answer:

{\huge{\blue\longrightarrow{\texttt{\orange A\red N\green S\pink W\blue E\purple R\red}}}}

After Running Above Python C.ode The Output

produced is Given in The Above Attachment.

Python Version is Python IDLE 3.8.6 shell

The Answer is an Original answer by Me.

after Interpreting C.odes .

May help future python aspirant. . .

Attachments:
Answered by Anonymous
0

Answer:

import numpy as np

import matplotlib.pyplot as plt

data=[[5,25,45,20], [8,13,29,27], [9,29,27,39]]

x=np.arange(4)

plt.plot(x,data[0],color='b',label='range1')

plt.plot(x,data[1],color='g',label='range2')

plt.plot(x,data[2],color='r',label='range3')

plt.legend(loc='upper left')

plt.title("MultiRange Line Chart")

plt.xlabel('X')

plt.ylabel('Y')

plt.show()

Explanation:

Similar questions