English

Mr. Sharma is working in a game development industry and he was comparing the given chart on the basis of the rating of the various games available on the play store.

Advertisements
Advertisements

Question

Read the following text and answer the following question on the basis of the same:

Mr. Sharma is working in a game development industry and he was comparing the given chart on the basis of the rating of the various games available on the play store.

He is trying to write a code to plot the graph. Help Mr. Sharma to fill in the blanks of the code and get the desired output.

import ______       #Statement 1
Games= ["Subway Surfer", "Temle Run", "Canddy Crush", ''Bottle Best"]
Rating=[4.2, 4.8, 5.0, 3.8, 4.1]
pit.__ (Games, Rating)      #Statement 2
plt.xlabel("Games") plt.__ ("Rating")     #Statement 3
pit.__        #Statement 4

Identify the name of the function that should be used in statement 2 plot the above graph.

Options

  • line () 

  • bar () 

  • hist () 

  • barh ()

MCQ
Advertisements

Solution

bar ()

shaalaa.com
Plotting Using Matplotlib
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×