Page 384 - Informatics_Practices_Fliipbook_Class12
P. 384

35.  The heights of 10 students of eighth grade are given below:                                      [5]
                                   Height_cms=[145,141,142,142,143,144,141,140,143,144]
              Write suitable Python code to generate a histogram based on the given data, along with an appropriate chart title
            and both axis labels.
            Also give suitable python statement to save this chart.
                                                           OR
            Write suitable Python code to create 'Favourite Hobby' Bar Chart as shown below:
                                                         Favourite Hobby
                                     500


                                     400

                                    Number of people  300




                                     200


                                     100

                                       0
                                             Dance      Music     Painting  Playing Sports
                                                             Hobbies

            Also give suitable python statement to save this chart.









































                                 Scan for the answers of CBSE Sample Question Paper.



          370  Touchpad Informatics Practices-XII
   379   380   381   382   383   384   385   386   387   388   389