logo CodeStepByStep logo

double_list

Language/Type: Python lists collections

Write a function named double_list that takes a list of strings as a parameter and that replaces every string with two of that string. For example, if the list stores the values ["how", "are", "you?"] before the function is called, it should store the values ["how", "how", "are", "are", "you?", "you?"] after the function finishes executing.

Function: Write a Python function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.