CBSE Class 12 Computer Science Question 49 of 105

Python Revision Tour — Question 3

Back to all questions
3
Question

Question 3

What are literals in Python? How many types of literals are allowed in Python?

Answer

Literals are data items that have a fixed value. The different types of literals allowed in Python are:

  1. String literals
  2. Numeric literals
  3. Boolean literals
  4. Special literal None
  5. Literal collections