Start from the basics
Work with returned values, text, addition, remaining quantities, and repeated amounts. The first two lessons explain the supplied function wrapper, so you can start without knowing how to design functions.
Free String Explorer: try Python and JavaScript string operations
Build confidence with small Python programs before tackling a larger project. Start with values and calculations, then practice cleaning text, reading errors, and working with strings. These free lessons and exercises are drawn from the existing StringClass courses.
No account needed for free previews · Hints, tests, and explained answers
Before you start: New to programming? Begin with Python Foundations. If you already use variables, functions, loops, lists, and dictionaries, try text automation or debugging. The string interview preview assumes those same basics.
Suppose a small contact list contains blank labels and extra spaces. Keep meaningful text in its original order. Removing whitespace is different from removing duplicates: both occurrences of Ada should remain.
labels = [" Ada ", "", "Grace ", " Ada "]
cleaned = []
for label in labels:
text = label.strip()
if text:
cleaned.append(text)
print(cleaned)
# ['Ada', 'Grace', 'Ada']strip() returns a new string with surrounding whitespace removed. An empty string is false in an if condition, so blank labels are skipped. The loop appends to a new list and leaves the input list unchanged. Try an empty list, a label containing only spaces, and a repeated name before moving on.
For each exercise, write down the function’s input and required return value. Predict the empty-input result, implement the smallest version, then run the supplied tests. A printed message is not a substitute for a returned result. Use hints in order and compare the reference solution only after trying your own approach.
Work with returned values, text, addition, remaining quantities, and repeated amounts. The first two lessons explain the supplied function wrapper, so you can start without knowing how to design functions.
Count records, keep meaningful lines, normalize labels, clean selected fields, and split key-value text. Read each contract carefully: missing data and blank text do not always mean the same thing.
See the full Practical Python: Text and Data Automation course outline →
Practice empty inputs, missing fields, division by zero, and small reproductions. Explain why the starter fails before changing it, then check a boundary case.
See the full Debugging and Testing Code — Python course outline →
Use the free string lessons and introductory problems to practice character handling and string operations. These previews are a better next step once loops, functions, and collections feel familiar.
The linked browser exercises run in an isolated Python workspace on your device. No Python installation or account is needed for these free previews. The runtime may take a moment to load the first time.
Each linked free exercise includes progressive hints, a reference solution, an explanation, and tests. Read the stated contract and attempt your own solution before revealing the answer.
Continue the course whose free examples match your goal: Foundations for basics, Practical Python for small automation tasks, Debugging for repair skills, or String Interviews for string-focused practice. Course access and practice access are separate purchase options; the Complete Bundle includes both.
Free previews are available without an account. An account lets you save your exercise code and progress. Create an account to save progress. Paid lessons and practice are clearly separated from these free links. Compare Course access, Practice Pack, and Complete Bundle.
Find a starting point, read a worked example, and try matching exercises with hints and solutions. No account is needed for free previews.