Page 159 - trackpad v5.1 class 7 flipbook
P. 159
COding Zone COding Zone {} = COding Zone
#Technology Literacy
{C ding z ne}
21 st
Century
#Critical Thinking
Skills
</>
1. Choose the valid identifiers from the following list:
a. My_var b. 2var
c. Sum_of_numbers d. my@var e. _init
2. Finding the output of the following Python code:
a. print(5 + 3 * 2) b. print(True and False)
c. x = 5 d. print(7 % 3)
x += 3
print(x)
3. Finding the errors in the following Python code:
a. print("Hello World) b. Print "python"
c. print(5 / 0)
4. Which of the following declarations is incorrect?
a. _a = 2 b. a = 2
c. while = 2 d. a_1=2
CAREER HERE
People who are expert in Python may pursue their career as a software developer.
FOR THE TEACHER
1. Explain various types of data types in detail.
2. Give small programs related to interesting, real-life examples to the students.
Tokens and Data Types in Python 157

