Page 125 - ComputerGenius_V2.1_Class8
P. 125

Experiential Learning
                    Competency-based/Application-based questions                         Information Literacy

                   1.   Ravi is not very good in coding. Ravi has written below a statement to display his name.
                          Print ("My name is Ravi")

                       What do you think will it execute or will display an error?
                   2.   Simran has written the following code to show addition of a number with 10:
                          Num=int(input("enter the number))

                          print(Num+10)
                       But this code is showing error, write the reason behind this.





                                                                                        Critical Thinking
                    LAB Activity                                                        Interdisciplinary Learning


                   A.   Write a program in Python to print the following messages 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.
                   B.   Assign value 6.8 to variables p, q, r and s. Then print the values of p,q, r and s.
                   C.   Write a Python program to take input from users as integers and print the sum of these numbers.

                   D.   Write a program that accepts three integers and print the largest of the three.











































                                                                                            Basics of Python  123
   120   121   122   123   124   125   126   127   128   129   130