Created
April 4, 2019 19:01
-
-
Save anonur/23fa4fd717b56d6eba8a49e8c20a17b0 to your computer and use it in GitHub Desktop.
Measure strings with while loop and len() function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Measure some strings: | |
movie = ['boogeyman', 'johnwick', 'best'] | |
for m in movie: | |
print(m, len(m)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment