Strings and Lists in Python PYTHON by Ravinder Nath Rajotiya - April 19, 2019March 12, 20220 Strings Strings can be : Single quoted : 'Hello! I am here'. This is a single quoted string Double quoted : "Hello! i am here". This is double "" quoted string. Anything including escape sequence appear as it is, they are overridden Escape sequence be used anywhere (\n, \t, \a, \b and so on) Without print() string appear as it is, but with print () escape sequence have meaning In Python, single-quoted strings and double-quoted strings are the same. Pick a rule and stick to it. Improving readability When a string contains single or double quote characters, however, use the other one to avoid backslashes in the string. It improves readability. Example: We can use raw string with ‘r’ in print() function as: Problems working with strings In many cases,