Page 144 - Trackpad_V1_Book 7_Flipbook
P. 144
2. Write a program to take the length and width of a rectangle as input and calculate its perimeter
and area.
Hashtag
#Operator: An operator is a symbol that triggers a computation action.
#Keywords: Keywords are the reserved word which is used for some specific purpose.
REVISIT
▶ A token is the smallest element of a Python program that is meaningful to the interpreter.
▶ Identifiers are the names given to variables, functions and arrays.
▶ Keywords are the reserved words are used for some specific purpose.
▶ Constants or literals are the fixed values that do not change during the execution of a program.
▶ An operator is a symbol that triggers a computation action.
▶ Data types are used to define the type of data.
1. Tick ( ) the correct option.
a. Which of the following is not a keyword in Python language?
(i) value (ii) true
(iii) break (iv) None of these
b. An _______________ is a symbol that triggers a computation action.
(i) operator (ii) keyword
(iii) break (iv) Error
c. Which of the following is an example of float data type?
(i) 3257 (ii) -3.257
(iii) Shweta (iv) c=3+4j
142 Trackpad (Version 1.0)-VII

