Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Length of the String by getrektmob
def string_length(text: str) -> int:
i = 0
for char in text:
i += 1
return i
print("Example:")
print(string_length("Hi"))
assert string_length("hi") == 2
assert string_length("CheckiO") == 7
assert string_length("") == 0
print("The first mission is done! Click 'Check' to earn cool rewards!")
May 12, 2022