Page 1 of 1

Finish attempt Write a function double_up(numbers) which takes a list as a parameter and doubles the value of each eleme

Posted: Sat May 14, 2022 2:35 pm
by answerhappygod
Finish Attempt Write A Function Double Up Numbers Which Takes A List As A Parameter And Doubles The Value Of Each Eleme 1
Finish Attempt Write A Function Double Up Numbers Which Takes A List As A Parameter And Doubles The Value Of Each Eleme 1 (31.67 KiB) Viewed 48 times
Finish attempt Write a function double_up(numbers) which takes a list as a parameter and doubles the value of each element in the list. Note that the list is changed in place. The function does not return a new list. For example, if the original list is: [4, 21, 55, 2, 7] then the list will be changed to: [8, 42, 110, 4, 14] For example: Result Test [2, 8, 10, 18, -4, -20) ['atat', 'oror', anyany'] numbers = [1, 4, 5, 9, -2, -10] double_up(numbers) print(numbers)