Initial value of scores is wrong. Test your function with "ba aaa" and see what it returns. Don't use max as a var name, it has a special meaning in Python.
"ba aaa"
max
Maybe it's just "Evil", not bad!
Loading collection data...
Initial value of scores is wrong.
Test your function with
"ba aaa"
and see what it returns.Don't use
max
as a var name, it has a special meaning in Python.Maybe it's just "Evil", not bad!