Why cant I print a lisf of the letters in this word?

def get_length(parangaricutirimicuaro):
counter = 0
for letter in parangaricutirimicuaro:
counter += 1
return counter

I only get a reference to where the numbers are stored in my machine but not the count of the words. Help!

Is your code properly indented?
Going forward, please format your code by using the “</>” button.

You didn’t pass through any arguments when you called the function.

You could also just use len() here on the number of letters in the string.

1 Like