This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
2/19 I need help before I go mad!!
this section is driving me nuts, I just can’t get it to work. I’ve copied and pasted what I think the code should be below, but have also tried many other combinations. This code does print eggs! to the console but I get an error message saying “oops try again. make sure function prints eggs! to the console”
Define your spam function starting on line 5. You
can leave the code on line 11 alone for now–we’ll
explain it soon!
def spam():
"""prints eggs!"""
print "eggs!"
Answer 551f1f6fe39efe69a100013e
Answer 552960d4d3292fb99d0004c0
Answer 55189a1f51b887d6d800466e
0 votes
You need to print "Eggs!"
, rather than "eggs!"
.
Answer 552997cc95e37804c3000475
0 votes
def spam(): leave four spaces like below “””prints Eggs!””” remember Eggs! not eggs! print “Eggs!”
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
4 comments
Thanks :-) You just saved me from going insane!!
Glad to learn that Eggs! served as an effective antidote.
@ Glenn best comment ever XD
this is idiotic, the interpreter is sometimes way too picky. It’s really doesn’t help when you puting eggs! there and them wonder why it doesn’t work when everything is done right.