Module - 1 Python
Module - 1 Python
PYTHON
MLO:
IWBAT-
Define keywords in programming languages and recognize their significance in
syntax.
Identify common keywords such as if, else, for, while, and return.
Explain the concept of variables as placeholders for storing data in a program.
Declare and initialize variables of different data types (e.g., integer, string,
boolean).
Define identifiers as names given to variables, functions, or other elements in
code.
Follow naming conventions for identifiers to ensure clarity and consistency in
code readability.
Differentiate between valid and invalid identifiers based on language rules and
best practices.
KEYWORDS
Variables
Values
Indentation
Reserved words/keywords
Statement
Expression
Text book exercises PAGE NO 16
1. 3.12
2. Guido Rossum
3. IDE
4. Indentation
5. sys.version
Text book exercises PAGE NO 16
True or False:-
1. True(1)
2. False(0)
3. True(1)
4. True(1)
5. False(0)
Answer the following:-
Ans. Python can run on a variety of hardware platforms, and has the same
interface on all platforms. Therefore Python is said to be portable.
+ add
- subtract
* multiply
/ divide
** exponent
// floor division
6. What are %s %d and %f?
1. C
2. C
3. C
4. A
5. D