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 Technical Interview Prep: Python Basics Basic Python Take Me Out To The Ball Game

Take me out to the ball game.

The example that I found showed it this way but it is not working.

formatting.py
def cheer(city, teamname):
    return ("Lets go", + city + "  " + teamname + "Let's go!   ")
cheer("Kansas City", "Royals")

1 Answer

Have you tried changing Lets to Let's, go", to go," and adding a period and a space between the teamname and the last string? You could also remove the spaces after the exclamation mark.

The challenge does not ask you to call the function, but if you want to see your function's output, you can use print. Otherwise, calling the function will return the string, but not print it.

Unfortunately it still doesn't want to work. I am at a loss.