Challenge 1: Python Essentials

Complete this challenge to practice what you’ve learned about Python essentials so far.

We'll cover the following

Function that uses range()

For this task, write a function in Python that doesn’t accept any parameters and returns a list of squares of 1 to 5. Use the range() method to get the numbers from 1 to 5.

You’ll have the following input and output:

Get hands-on with 1400+ tech skills courses.