top of page

Strings

This page features 3 levels of projects to teach you how to use Strings in Python:
1. Simple string concatenation and formatting
2. String indexing and slicing
3. String methods and f strings

Level 1: Name Combiner

Goal: Ask the user for their first and last name, and greet them.

Level 2: Word Play

Goal: Ask the user a word, and use indexes/slicing to print first/last letter, middle, and reverse of the word.

Level 3: Sentence Formatter

Goal: Ask the user for a sentence, use a variety of String methods and f strings to reformat the sentence

bottom of page