Welcome to the Treehouse Community
Looking to learn something new?
What am I doing wrong?
I followed the video exactly, but I keep getting "Bummer: EOF when reading a line." What am I missing or messing up? Thanks!
from models import Challenge def create_challenge(name, language, steps=1): Challenge.create(name=name, language=language, steps=steps) def search_challenges(name, language): return Challenge.select().where( Challenge.name.contains(name), Challenge.language==language) def delete_challenge(Challenge): if input("Are you sure? [yN] ").lower() == 'y': entry.delete_instance()
Steven Parker216,083 Points
The instructions say "Create a function named delete_challenge that takes a Challenge as an argument. Delete the specified Challenge."
You don't need to "input" anything, and the validation mechanism isn't expecting it or designed to provide a response.
Also, you have a reference to "entry", but nothing by that name is defined.