02_01_string-functions-lesson-notes-optional-download_Strings - String Functions
02_01_string-functions-lesson-notes-optional-download_Strings - String Functions
Strings
String Functions
String Functions
String functions are predefined functions that perform an action on a
string. Functions have a specific syntax — function name, parentheses,
and a string (often a variable) between the parentheses. The string
between the parentheses is called a parameter, which is a piece of
information the function requires so it can do its job.
In fact, len is a string function. There are a few other functions that work
with strings.
challenge
Note
The program does not have an error. You do not see anything because
the “smallest” character is the " " between words. You cannot easily see
a blank space on its own, which is why it seems like there is a problem
with your code.
my_string = "xyz321"
print(max(my_string))
challenge