Coding in Python 07 – Additional String Methods

In video number 7 of the Coding in Python series, we take a look at additional string methods.

YouTube player

Creating a string variable and printing it (refresher)

msg = "This is a string"
print(msg)

Print an individual character from a string

print(msg[3])

Print a lower or mixed-case string as all upper-case

print(msg.upper())

Print an upper or mixed-case string as all lower-case

print(msg.lower())

Support Linux Learning