Saved Bookmarks
| 1. |
What are literals in Python ? How many types of literals are allowed in Python ? |
|
Answer» Literals mean constants i.e. the data items that never change value during a program run. Python allow five types of literals : 1. String literals 2. Numeric literals 3. Boolean literals 4. Special literal (None) 5. Literal collections like tuples, lists etc. |
|