kode pythion untuk menemukan semua panjang string dalam kode

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))
Combative Cardinal