Quotes About Strings

In this chapter, you learned the following:

  • Python uses type str to represent text as sequences of characters.

  • Strings are created by placing pairs of single quotes or double quotes " around the text.

  •  '''Should you want a string
     that crosses multiple lines,
     Use matched triple quotes.'''

  • Special characters like newline ( ) and tab ( ) are represented using escape sequences that begin with a backslash. For example, ’this string spans three lines’.

  • Values can be printed using built-in function print, and input can be provided by the user using built-in function input.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.12.232