Skip to main content

Using Python String Methods

Hands-On Lab

 

Photo of Keith Thompson

Keith Thompson

DevOps Training Architect II in Content

Length

00:15:00

Difficulty

Beginner

Strings are the primary way that we interact with non-numerical data in programming, and the str type in Python provides us with a lot of powerful methods to make working with string data easier. In this hands-on lab, we'll be creating a script that can take a user-provided message and perform various actions on it before printing out those new results. To feel comfortable completing this lab you'll want to know how to do the following: Utilize methods on the str class. Watch the "Using String Methods" from the [Certified Entry-Level Python Programmer Certification][1] course. Working with list literals. Watch the "Lists" video from the [Certified Entry-Level Python Programmer Certification][1] course. * Using List functions and methods. Watch the "List Functions and Methods" video from the [Certified Entry-Level Python Programmer Certification][1] course. [1]: https://linuxacademy.com/cp/modules/view/id/413

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.