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


Answer =

Literals are data item or value in python.

There are five type of literal :–

1. string literal
2. numeric literal
3. Boolean  literal
4. special literal
5. literal collection

3 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post