Page 144 - Trackpad_V5_Book 7
P. 144
2. Write a program to take the length and width of a rectangle as input and calculate its area.
Hashtag
#Operator: An operator is a symbol that triggers a computation action
#Keywords: Keywords are the reserved words which are used for some specific purposes
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 reserved words that are used for some specific purposes.
▶ 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. In Python, the 3**5 expression will return _______________.
(i) 243 (ii) 15
(iii) 125 (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 Pro (Ver. 5.0)-VII

