Course Home
Announcements
Check Yourself
Python Errors in English
CodeSkulptor FAQ
Reflections

Online Lessons

Related Links

Online Development

Lessons

Reference

eBooks

Strings

On this page, you'll get an in-depth look at Python strings from Google's Python Class by Nick Parlante. String processing is a critical part of a Google search. Why do you think that is?

String Basics

As you watch the video, use the trinket console below it to follow along.

Here are a few trinket exercises for programmers who are familiar with functions:

The Quizlet below contains strings methods you should memorize. Make sure you know them well before you move on.

Quiz

Test yourself on the string methods with this TestMoz quiz. Don't forget to sign in with your first and last name.

Python Slices

Check out this cool Python feature.

Here's the image of the video that shows positive and negative indices for the string 'Hello'

the string 'hello' with letter indexes 0 1 2 3 4

Now try this trinket exercise:

Need more of a challenge?

Log in to CodingBat and try some of the String-1 exercises, also brought to you by Nick Parlante!

Or download the google-python-exercises.zip file and try string1.py or string2.py in the basic folder.

Review Material

Leone Learning Systems, Inc. (LLS) is a North Shore company that provides online courses for kids anywhere and local teaching and tutoring services for students in Chicago and the Northern Suburbs of Chicagoland. LLS also provides a free geometry software package for children age 6 and up, and free resources for teachers and parents. This site includes information about classes taught, availability for tutoring, learning activities for kids, lesson plans, and ongoing software and curriculum research and development efforts.