+ 3
What can I do to make it callable?
4 Answers
+ 6
It's not a function so no need braces..
for l in string : # removed ()
+ 4
Remove the parentheses after 'string' in the for loop header. Like this:
for l in string:
Also a friendly tip - avoid using the lowercase letter 'l' as a variable name. It's easily confused for a capital I or the number 1.
+ 2
Oh thank you so much for figuring this out) āŗļø
+ 1
Thanks!