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


#1

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?


#2

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


#3

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