Len() and str()


#1

can someone explain to me what a len() does?


#2

@cenaurpilot,
Have a look at
https://docs.python.org/2/library/functions.html


#3

len() measures the length of a string. But you can insert a variable in the parenthesis and if the variable is a string then it will also work for that. Someone please correct me if I am wrong, I am new to python :blush: