Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pythion code for finding all string lengths in a code

def func(list):
    return[*map(len, list)]
  
list = ['enjoy','bad','fill','encyclopedia']
print("Original String")
print(list)
print("length of the sting in a list")
print(func(list))
 
PREVIOUS NEXT
Tagged: #pythion #code #finding #string #lengths #code
ADD COMMENT
Topic
Name
8+1 =