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 trialJerad Millay
14,396 PointsToubleshooting objective anser
Obviously doing something wrong, cannot figure out what or why? Thanks in advance.
import sys
def start_movie():
answer = input("Would you like to start the movie? ").lower()
if answer != 'n':
print("Enjoy the show!")
else:
sys.exit()
1 Answer
AJ Salmon
5,675 PointsHey Jared,
Your function works perfectly, but this challenge isn't asking for you to write a function! You just need to delete line 3 and move lines 4-8 out of the start_movie
function (un-indent a step). Hope this helps!
Jerad Millay
14,396 PointsJerad Millay
14,396 Points...wow...thank you AJ! seems to be this simplicity and over-complications that are throwing me snags learning this. Appreciate your feedback.
AJ Salmon
5,675 PointsAJ Salmon
5,675 PointsMy pleasure! Sometimes it's easy to mix up exactly what the challenge is asking for. If you were writing a complete program, it would actually be ideal to write a
start_movie
function, so you could call it later. You totally had the right idea :) You just had a little more than you needed. Happy coding!!!