Len() and lower()


#1

Why do I use len(parrot), but I need to use parrot.lower(), instead of lower(parrot)?


#2

.lower() is a string function. All string functions have the same format.
Example- string.lower() string.upper() string.join()

len() on the other hand, can be used for various datatypes. It can return the length of a string, or a list etc.


#3

thanks this was a big help


#4

yea dude just stop smoking please