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())

Brand-New Course!

Check out Jay’s new course on Ansible and start automating today!

Discount Vouchers


Receive 5% off an LPI exam voucher!

Exclusive Member Features

Support the channel and receive exclusive perks!