Skip to content

Instantly share code, notes, and snippets.

Created Sep 28, 2021
What would you like to do?
names = ["Aman", "Akanksha", "John Cena"]
length = list(map(len, names))
index = 0
for i in names:
print(names[index], length[index])
index = index + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment