Welcome to Westonci.ca, where finding answers to your questions is made simple by our community of experts. Our Q&A platform offers a seamless experience for finding reliable answers from experts in various disciplines. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

Write a function named add_surname that takes as a parameter a list of first names. It should use a list comprehension to return a list that contains only those names

Sagot :

def accumulating():

 List = []

 Strings = input("Please enter a list of strings: ")

 List = Strings.split(" ")

 return List

def length(n):

 r = []

 for i in n:

   r.append(len(n))

 return r

def main():

 y = accumulating()

 x = length(y)

 print(x)

main()

Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. Thank you for your visit. We're dedicated to helping you find the information you need, whenever you need it. Thank you for using Westonci.ca. Come back for more in-depth answers to all your queries.