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 trialRoss Watkins
3,433 Pointsstuck on python basic ending code challenge.
stuck please help
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
Jeremy Hill
29,567 PointsTo 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!
Jeremy Hill
29,567 PointsJeremy Hill
29,567 Points...oh and fix the quotes on the last line: at the beginning it has " and the end it has '