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) Python for Beginners Correct errors

Ross Watkins
Ross Watkins
3,433 Points

stuck on python basic ending code challenge.

stuck please help

errors.py
print("Hello")
print(name)
    def print(name):
        name='Ross'
print("Let's do some math!")
print(5 + 5)

print("Thanks for playing along!')

1 Answer

To start off it won't be able to print the variable name because there wasn't one declared so we need to fix that: at the beginning of your code add: name = "some name". next it wont be able to add the integer and the string together so you need to fix that: just throw some quotes around the '5' like that and you should be good!

...oh and fix the quotes on the last line: at the beginning it has " and the end it has '