10
Last seen 4 years ago
Member for 5 years, 6 months, 19 days
Difficulty Normal
Hi! I suggest you an alternative for loop:
max_value = 0
for char in clean:
value = clean.count(char)
if value > max_value:
max_value = value
max_letter = char
return max_letter
More
Hi! Nice code, I just think there is no need to transform to a list
More
I really like this solution! Just one question: in line 8 abnd 10 is it necessary to do char.lower()? Isn't the text already all low char from line 4?
More
You should check array[0::2] for the part with the even indexes
and for array[len(array)-1] you can just do array[-1]
More