Source Code:
(back to article)
my_string = "hello" string_length = len(my_string) print(string_length) # Output: 5 my_tuple = (1, 2, 3) tuple_length = len(my_tuple) print(tuple_length) # Output: 3
Result:
Report an issue