Menu
Coddy logo textTech

Recap - Reversed List

Part of the Fundamentals section of Coddy's Python journey — lesson 58 of 77.

challenge icon

Challenge

Easy

Write a function named reverse which gets a list of numbers as argument and returns the reversed list.

For example, for [1, 2, 3], the expected output is [3, 2, 1].

Don't use the reverse list builtin function!

Try it yourself

def reverse(lst):
    # Write code here

All lessons in Fundamentals