Python len(), upper(), lower() functions


Just wondering why these dont work in idle on Python 3.6??

Replace this line with your code.


difficult to say without your code. The exercise url will just fetch my code in that exercise. Copy paste your code to the forum


sorry its just trying to use the len() to print the length of a string but the len() doesn't work in python 3.6.


the len() function works fine. Did you make print a function call? In python3 its a function call where as in python2 its a statement, but if you don't include your code, i can't pinpoint the problem


Hi no worries i finally figured it out, print (len(My_string)) is how I had to use the len() function. sorry im still trying to learn