Page 116 - ThinkGPT_V2.1_C6_Flipbook
P. 116

3.   Write an example of declaring and initialising a variable.


                      4.   State any two variable naming conventions.





                      5.   Explain the components of Python window.





                      6.   Differentiate among the input() and print() functions.






                                                                                         Technology Literacy
                                                                                         Information Literacy

                    Create the following programs in the Script mode and write their outputs in the given boxes.

                    1. name = "Sanjay"                                   2. y = 10
                      print(name)                                          z = y
                                                                           print(y, z)
                    3. p, q, r = 10, 20 ,30
                      print(p, q, r)




                                                                                         Critical Thinking
                     Competency-based/Application-based questions                        Information Literacy
                    1.   Aarav has been writing codes in the command prompt. He wants to save and reuse his
                        programs. Where should he write his codes instead so that he can easily open, run and
                        save for further use?
                    2.   Your friend is working on his maths assignment and he has to do some quick calculations.
                        Which function should he use to convert the input values into floating point values?



                                                                                         Critical Thinking
                     code TASK                                                           Technology Literacy



                    Write a program in Python to print the following using print command.
                    1.  Hello, How are you? I am learning Python language.
                    2.  Education is the most powerful weapon which you can use to change the world.









                      114    Premium Edition-VI
   111   112   113   114   115   116   117   118   119   120   121