#I tried solving this and got stuck. I still dont understand python that well.
6 messages · Page 1 of 1 (latest)
Please use "code blocks" for pieces of code and error messages. Otherwise your code might not get rendered properly.
Also, if you got an error, post the error message, too.
Increase your chance of getting help and look like a pro by sharing codeblocks not images. For example, you can type the following. Note, the ``` must be on their own line.
```
for number in range(10):
total += number;
```
Discord will render that as so:
for number in range(10):
total += number;
Click here to learn more about codeblocks: https://exercism.org/docs/community/being-a-good-community-member/writing-support-requests and http://bit.ly/howto-ask
Two things:
- There's an
import lasagnaat the top. What is it supposed to do? Do you need it? - Compare the two
returnstatements. One starts withreturn = ..., the other withreturn .... Do you see the difference? Which one is syntactically correct?
@candid gulch I was trying to give a hint that it's not necessary because it's in the file lasagna.py so the import lasagna essentially tries to import itself. I'm not a big fan of cargo cult where you write some code without understanding it, just because you've seen it somewhere.
I will be more careful from now on. Sorry for bothering you.