Python literals - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Python literals

Python literals

Python literals 

String literals can be enclosed in matching single quotes (') or double quotes ("). They can also be enclosed in matching groups of three single or double quotes (these are generally referred to as triple-quoted strings). The backslash (\) character is used to escape characters that otherwise have a special meaning, such as newline, backslash itself, or the quote character. String literals may optionally be prefixed with a letter `r' or `R'; such strings are called raw strings and use different rules for backslash escape sequences.
Literals
Meaning
\\
Backslash (\)
\'
Single quote(')
\"
Double quote(")
\a
ASCII Bell(BEL)
\b
ASCII Backspace(BS)
\f
ASCII Formfeed(FF)
\n
ASCII Linefeed(LF)
\r
ASCII Carriage Return(CR)
I hope this tutorial helped you Python literals Tutorial.  As always, if you found this post useful, then subscribe to our free newsletter. You can also follow us on Google+, Twitter or like our Facebook page.

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.