Coding in Python 07 - Additional String Methods

From LearnLinux.tv Wiki
Jump to navigation Jump to search

Overview

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

Relevant Links
Original Video


Commands Used in this Video

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