Skip to content

Instantly share code, notes, and snippets.

@cibofdevs
Last active September 19, 2022 12:45
Show Gist options
  • Save cibofdevs/d829da0d25417f7d9fefea526a53e627 to your computer and use it in GitHub Desktop.
Save cibofdevs/d829da0d25417f7d9fefea526a53e627 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"]
# Write your code here.
for i in range(len(str_list)):
print(len(str_list[i]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment