about | help | code help+videos | done | prefs |
Given a list of elements, return a list containing the same elements in the opposite order using an iterative solution. Do not use recursion or slicing. reverse(['a', 'b', 'c']) → ['c', 'b', 'a'] reverse([2, 5, -6, 100, 'have a nice day']) → ['have a nice day', 100, -6, 5, 2] reverse([1, 3, 6]) → [6, 3, 1] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 150
Copyright Nick Parlante 2017 - privacy