Must-do problems: Strings
90 min ยท Beginner
Need help? Ask a tutor on WhatsApp (opens in a new tab)These are the string problems every Python beginner should be able to solve, from reversing a word to checking an email address. Try each one on paper with a small input first, then check your program against every test.
What you will learn
What you will learn
- Read characters and slices with positive and negative indexes
- Clean and compare text with strip, lower, split and join
- Walk over characters with a for loop to count and test them
- Check input with in, startswith, endswith and isdigit
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.