Skip to content

Instantly share code, notes, and snippets.

@anonur
Created April 4, 2019 19:01
Show Gist options
  • Save anonur/23fa4fd717b56d6eba8a49e8c20a17b0 to your computer and use it in GitHub Desktop.
Save anonur/23fa4fd717b56d6eba8a49e8c20a17b0 to your computer and use it in GitHub Desktop.
Measure strings with while loop and len() function
#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