Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 149 - 2612 Digimind C6
P. 149

    c.  What are data types in Python? Give two examples.
                         _______________________________________________________________________________

                         _______________________________________________________________________________
                        d.  What is an operator in python? Explain with example.
                         _______________________________________________________________________________

                         _______________________________________________________________________________
                        e.  Explain any two features of python programming language.

                         _______________________________________________________________________________
                         _______________________________________________________________________________

                                                                                                  21 st   #Critical Thinking
                     5.  Competency-based/Application-based questions.                          Century
                                                                                                 Skills
                        a.   Vyom wrote a few programs in Python and was using a Windows PC at the time. He then sent
                           the programs to his friends who use Linux and Macintosh. Will they be able to execute his
                           programs? If yes then which feature of Python would make this possible?

                        b.   Aman finished writing a program in Python and has saved it successfully but now he has forgotten
                           the option to execute a program. Tell him which option he should use.

                                                                                                 21 st
                          LAB ACTIVITY                                                         Century   #Technology Literacy
                                                                                                Skills

                          Visit your computer lab and perform the following actions:

                             Write a Python program that does the following:
                             (a)  Asks the user for their name and prints a greeting message using their name.

                             (b)  Prompts the user to input two numbers, then calculates and displays their sum.
                             Print the following information in Python:
                             (a)  Display five popular tourist attractions in your city.

                             (b)  Show five countries you dream of traveling to.
                             (c)  List your top five favorite movies

                                                                                                       21 st   #Collaboration
                     GROUP DISCUSSION                                                               Century   #Communication
                                                                                                      Skills
                        Divide the students in the two groups and organise a group discussion on different
                        modes on python.

                                                                                                 Introduction to Python  147

| 144 145 146 147 148 149 150 151 152 153 154 |