Practical Coding in Python

Learn to write and validate your own code

Darren Kessner, PhD

(revised September 1, 2025)

Previous: 2. Strings and Math

hello_strings

Output:

hello:  HelloWorld
len(hello):  10
hello[0]:  H
hello[0:5]: Hello
hello[5:]:  World
hello[5:-2]:  Wor
hello: HelloWorld 10 True

Next: