Computer Science

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

Python Funda

51 Likes

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

Answered By

27 Likes


Related Questions