58
We use the len() function. If you say len("Suya"), it will give you 4. It’s short for 'length'.
This is useful for making sure a password isn't too short or a message isn't too long. I use it constantly in my projects to keep data clean.
Log in to add a comment.