Skip to content

Instantly share code, notes, and snippets.

@Alexpeain
Created December 19, 2020 09:10
Show Gist options
  • Save Alexpeain/63a190f20c376e7194994e14c01184c4 to your computer and use it in GitHub Desktop.
Save Alexpeain/63a190f20c376e7194994e14c01184c4 to your computer and use it in GitHub Desktop.
#Write code that uses iteration to print out the length of each element of the list stored in str_list.
str_list = ["hello", "", "goodbye", "wonderful", "I love Python"]
for i in str_list :
print(len(i))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment