Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics Functions and Looping Create a Function

Can anyone help me with this function question?

What is the first step for this function? I forgot after taking a day off?

def squar

2 Answers

It would probably be best to go back and re-watch the last couple videos to get your feet planted again. After you've done that, carefully read the challenge instructions and give it your best shot. If you're still having trouble at that point, feel free to share the code you've written for us to help you with. Best of luck!

Kyle Salisbury
Kyle Salisbury
Full Stack JavaScript Techdegree Student 16,363 Points

You need a parameter.

def squar():

I haven't looked at the challenge, but you might need to give your function some parameters like:

def squar(num):

That would be my best guess on your "first step" at least.