Question: Write a function doubleEveryOther in python that takes a list of digits and returns a new list of digits where every other number is doubled
Write a function doubleEveryOther in python that takes a list of digits and returns a new list of digits where every other number is doubled starting from the right (end of the list).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
