Create a function that takes any string as an argument and returns the length of that string.
So, the code is:
>>> def string_length(mystring):
... return len(mystring)
...
>>> print(string_length("Hello"))
5
Create a function that takes any string as an argument and returns the length of that string.
So, the code is:
>>> def string_length(mystring):
... return len(mystring)
...
>>> print(string_length("Hello"))
5
Reply