...

/

String Functions

String Functions

Learn about the usage of some built-in string functions.

We'll cover the following...

Built-in functions

Some built-in functions can be used with a string, as shown below:

Press + to interact
msg = 'Surreal'
print(len(msg)) # prints 7 - length of string
print(min(msg)) # prints S - character with min value
print(max(msg)) # prints u - character with max value

String methods

  • A nameless object of type
...