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:
- String literals
- Numeric literals
- Boolean literals
- Special literal None
- Literal collections
Answered By
27 Likes
Related Questions
How are floating constants represented in Python ? Give examples to support your answer.
What are tokens in Python ? How many types of tokens are allowed in Python ? Exemplify your answer.
How are keywords different from identifiers ?
Can nongraphic characters be used in Python ? How ? Give examples to support your answer.