Lesson 1, Topic 1
In Progress

Strings

 

What are strings?

A string is a group or series of characters. Anything inside quotes is considered a string in Python, and you can use single or double quotes around your strings like the following:

"This is a string"

'This is also a string'

 


 

Changing Case in a String with Methods

 

 


 

Using Variables in Strings

 

 


 

Adding Whitespace to Strings with Tabs or Newlines

 

 


 

Stripping Whitespace

 

 


 

Avoiding Syntax Errors with Strings