Lesson 5/13


#1

Can I HAVE some help with lesson 5/13?
What’s wrong in this code?

1 def spam():
2 eggs=12
3 return eggs
4
5 print spam()


#2

please see this topic:

on how you can write better posts, which include more useful information so we can help you faster, better and more effectively


#3

Is this the unit you are on?

A Day at the Supermarket


#4

given the edit, i think he is on this one:

https://www.codecademy.com/courses/learn-python/lessons/python-syntax/exercises/whitespace?action=lesson_resume

@cats7, please post your code with markup:

This way, we can see the white-spacing of your code.


#5

Thanks a lot, but it not solve the probem. The code stil not working!


#6

A solution has never been suggested, so it makes sense it still doesn’t work

without formatting your code, all white-spaces are gone, so we can’t see what your code really looks like, that is why you have to post your code with format

Also, things like error messages are really useful, did you read the Quick tips for writing a good post?


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.