def string_length(mystring): return len(mystring)
And here's an example of calling the function:
print(string_length("Hello"))
That would return 5.