Python Fundamentals

  1. This lecture series contains videos, study materials and quizzes related to the following topics.
    Python character set
    Tokens and its types
    The basic process to follow the lecture series is.
    1- First watch video
    2- Read the topic
    3- Finally, take the quiz
    4- If any problem or error in lecture series comment

Things to remember

Character set is a set of valid characters which Python recognizes and uses.

Python has the following character set.

Letters: {a,b,c,….,z} {A,B,C,…Z}
Digits: {0,1,2,3,4,….,9}
Special Symbols: (), _, #, {}
Whitespaces: newline, tab, formfeed
ASCII and Unicode characters

Tokens in Python


Sunita Arora, Computer Science with Python Textbook for Class XI, Dhanpat Rai and Co., Edition 2019, Pages 120-154.

You have learned, it is time to test yourself.



#1. What would be output of the above program?

#2. An escape sequence is represented by.

#3. Which quotation mark can be used for a multiline string?

#4. Identifiers are

#5. Which option is correct?

None of the above is correct because  opening quotation is triple but closing is double. So, there would be an error

#6. Which is a valid identifier in Python?

Correct option is _DS

Option DATA-REC is false because -(hyphen)  can not be part of an identifier.

Option 29CLCT is false because 29( a number i)  can be part of  an identifier, however, it can not be at the beginning.

#7. Keywords are

#8. What would be the output of the above program? (See ASCII code table corresponding to hexadecimal values)

#9. Which one is a special literal in Python?

#10. Which one is a Boolean literal in Python?

You Can Finish If You Want

Share to Your Friend

Leave a Comment