Chapter - 6 Notes
Chapter - 6 Notes
ARISE
International School of Excellence
Central Board of Secondary Education (CBSE)
(Affiliated to CBSE, New Delhi: Affiliation No – 1931587)
Chapter – 6 – Worksheet
PYTHON FUNDAMENTALS
Very Short answer Type Questions.
Q.1 What is None literal in Python?
Ans: Python has one special literal, which is None. The None literal is used to indicate absence of
value. It is also used to indicate the end of lists in Python. It means “There is nothing here”.
Ans: The following error comes - 'int' object is not iterable. Which means an integer object i.e.
cannot be repeated for x and y. one more integer object is required after 7.
Ans: Difference between Keyword and Identifier: Every language has keywords and identifiers,
which are only understood by its compiler. Keywords are predefined reserved words, which
possess special meaning. An identifier is a unique name given to a particular variable, function or
Q.2 What are literals in Python? How many types of Literals allowed in Python?
Ans: Literals: Python comes with some built-in objects. Some are used so often that Python has a
quick way to make these objects, called literals. The literals include the string, Unicode string,
Ans: Three Types of Sequences are supported in python: (i) String (ii) List (iii) Tuple
Ans: A statement is an instruction that the Python interpreter can execute. An expression is a
Q.5 What are tokens in Python? How many types of tokens allowed in Python?
Identifiers
Literals
Punctuators
Q.6 What are operators? What is their function? Give examples of some unary and binary
operators.
Ans: “Operators are those symbols used with operands, which tells compiler which operation is to
be done on operands.” In other words – “operators are tokens that trigger some
of code. Statements at same indentation level are part of same block/suit. You cannot
Q.9 What is the error in following Python program with one statement?
Ans: Error is : 'name' is not defined. And the solution is to declare the variable-name before this
statement.
a,b,c = 2,3,4
print(a,b,c)
Ans : Output : 4 6 8