In String literals we can use esacpe characters to associate a special meaning. 1) >>> s="durga\nsoftware" 2) >>> print(s) 3) durga 4) software 5) >>> s="durga\tsoftware" 6) >>> print(s) 7) durga software 8) >>> s="This is " symbol" 9) File "
1) \n 2) \t 3) \r 4) \b 5) \f 6) \v 7) \' 8) \" 9) \\ ....
Constants:
Constants concept is not applicable in Python. But it is convention to use only uppercase characters if we don’t want to change value.
MAX_VALUE = 10
It is just convention but we can change the value. New Line Horizontal Tab Carriage Return Back Space Form Feed Vertical Tab Single Quote Double Quote Back Slash Symbol