Skip to main content
Clean up a phrase, reverse it with a slice, and compare the two to decide whether it’s a palindrome. Open Lab 22 in the IP Lab Portal

What you will practice

  • Normalize case and remove spaces
  • Reverse a string with slicing
  • Compare the two versions

Before you start

Time

15 minutes

Where

IP Lab Portal

Module

Module 9: Strings

  • In the IP Lab Portal, open Lab 22 - Palindrome checker.
  • In class, this lab comes right after the Lesson 4 recap slide in Module 9 core material.