Menu

(Solved) : 4 Write Function Called Doublestrings Accepts List Strings Function Return List Contains S Q44070527 . . .

4. Write a function called doubleStrings() that accepts a list of strings. The function should return a list that contains al4. Write a function called doubleStrings() that accepts a list of strings. The function should return a list that contains all the strings, but doubled. That is, if your list contains the strings (hi’, ‘bye’, ‘401’], then your function should return a list that contains: [‘hihi’, ‘byebye’, ‘4014011. For example! words = [‘hello’, ‘collective’, ‘bicycle’,’car’, ‘catalog’, ‘resources’] print (doubleStrings (words)) # C’hellohello’, ‘collectivecollective’, ‘bicyclebicycle’, ‘carcar’, ‘catalogcatalog’, ‘resourcesresources’] Show transcribed image text 4. Write a function called doubleStrings() that accepts a list of strings. The function should return a list that contains all the strings, but doubled. That is, if your list contains the strings (hi’, ‘bye’, ‘401’], then your function should return a list that contains: [‘hihi’, ‘byebye’, ‘4014011. For example! words = [‘hello’, ‘collective’, ‘bicycle’,’car’, ‘catalog’, ‘resources’] print (doubleStrings (words)) # C’hellohello’, ‘collectivecollective’, ‘bicyclebicycle’, ‘carcar’, ‘catalogcatalog’, ‘resourcesresources’]

Expert Answer


Answer to 4. Write a function called doubleStrings() that accepts a list of strings. The function should return a list that contai…

OR