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

Literals are data or value that can be assigned to any identifier and have a fixed value. Python have following literals
(1)String Literals
(2)Numeric Literals
(3)Boolean Literals
(4)Special Literals ‘None’

error: Content is protected !!