Core Python
June 3, 2026 1 min read

Literals in Python: Values Assigned to Variables and Constants

HS
HEMANT SINGH
Technical Writer & Educator

Literal

Literal is a notation of representing a fixed value in source code. these are data given to variable and constant.

name='Rama'
age=20

'Rama', 20 is called Literal