Page 153 - TrackpadV2.1_Class8
P. 153
Output
Enter the Length 10
Enter the Width 4
Area of the Rectangle is : 40
Imagine, comments in Python are secret messages from a wise mentor. What advice or tips
would you leave in your code for future programmers to discover?
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) Output
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
Tokens and Data Types in Python 151

