Python Python Basics Logic in Python Try and Except

Ro Joshi
PRO
Ro Joshi
Pro Student 836 Points

WHY IS THIS CODE NOT WORKING????

I do not know why this code is not working. Please guide me how to solve this code error.

trial.py
def add(dog, name):
    return dog + name

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 42,876 Points

Your code correctly passes Task 1. In the next task, you need to convert the inputs to float. What have you tried?