Tag: Literals in Python
What are Literals in Python and explain about different Literals?
- Naveen
- 0
A literal in python source code represents a fixed value for primitive data types. There are 5 types of literals in Python- String literals A string literal is created by assigning some text enclosed in single of double quotes to a variable. To create multiline literals, assign the multiline text enclosed in triple quotes. E.g.,…
Read More