Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python code to find the length of string in a list

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: #python #code #find #length #string #list
ADD COMMENT
Topic
Name
6+1 =