Please enable JavaScript to use CodeHS

Intro to Computer Science in Python 3

Lesson 7.5 The in Keyword

Description

In this lesson, students will see how the in keyword can be used in an if statement to see if a particular letter or substring is in a string.


Objective

Students will be able to:

  • use the in keyword to check if a character is in a string