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 (2015) Logic in Python Try and Except

need help

I need the code to pass these challenges.

I have ben on them for days now and have not been able to move forward

trial.py

Kourosh Raeen
Kourosh Raeen
23,733 Points

Can you post the code you have so far?

1 Answer

Steven Parker
Steven Parker
231,007 Points

These follow the video examples pretty closely - have you reviewed the video?

It's hard to provide hints without knowing which task you are on, or what you tried already. But here's an example of a function that would take two numbers and multiply them, returning the result:

def mult(a, b):
    return a * b

Hopefully, that will get you started.