Introduction
In this lab, you will learn how to check if a list contains a string in Python. The lab begins by introducing the fundamental concept of strings, demonstrating how to access individual characters using indexing, extract substrings using slicing, and determine the length of a string.
You'll start by creating a Python script named string_elements.py
to explore string elements. This script will assign a string to a variable, access individual characters, extract substrings, and calculate the string's length, providing a foundation for understanding string manipulation in Python.