Len isn't working for me in python? (Invalid syntax error?)


Please leave the following link in the post so we can find the unit module, else replace it with a link to the exact lesson:

Strings and Console Output

I was curious about len so I decided to try and do it in my downloaded python, but it says that it’s invalid syntax. Am i doing something wrong?


the problem isn’t with len, its with print. In python3, print is a function call so it requires parentheses


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.