Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 134 - 2612_Digimind
P. 134

    21 st
                         LAB ACTIVITY                                                           Century   #Technology Literacy
                                                                                                  Skills

                              Go to your computer lab and open the Python IDLE or any Python editor. Type simple Python
                             programs  using different characters such as alphabets,  digits  and special  symbols.  Identify
                             Python tokens like keywords, identifiers, literals and operators used in the programs. Observe
                             how Python recognises valid characters and tokens and note your observations in your lab
                             notebook.

                              Write Python programs to demonstrate different built-in data types. Assign values to variables
                             and use the type() function to identify their data types. Record your observations and explain
                             how choosing the correct data type helps in efficient program execution.

                                                                                              21 st
                               COding Zone       COding Zone    {}      =     COding Zone
                                      {C ding z ne}
                                                                                                  #Critical  Thinking
                                                                                            Century
                                                                                              Skills
                                                                               </>
                          Find the error in the following Python code and rewrite the correct code:
                          total@marks = 450
                          print(total@marks)

                             CAREER HERE
                      People who are expert in Python may pursue their career as Software Development, Data Analysis,
                      Machine Learning Engineering and Web Development.

                         FOR THE TEACHER

                        Discussion on Python programming and its applications in real-world scenarios would be helpful for the students.

                      132   Premium Edition-VII

| 129 130 131 132 133 134 135 136 137 138 139 |