0

Who can help me with an error?

I forgot what a syntax is XD (I’m already done with it though) https://sololearn.com/compiler-playground/cR2dR9Hvyhnv/?ref=app My lil guide to Python

31st Mar 2024, 2:57 PM
Amery Tsang
Amery Tsang - avatar
3 ответов
+ 4
Just put colon(:) at the end of the line of function i.e line 18 and give space in the starting of line 19 and 21 in order to avoid indentation error.
31st Mar 2024, 3:02 PM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 3
Amery Tsang , not clear what your question or issue is. > can you be a bit more specific?
31st Mar 2024, 3:02 PM
Lothar
Lothar - avatar
+ 1
There are several errors in the code snippet you provided: 1. In the `fish` function definition, the variable names `jett`, `justin`, and `bloob` should be strings (`"jett"`, `"justin"`, `"bloob"`), otherwise, they will be treated as variables which are not defined. 2. The `fish` list is defined within the `fish` function, so it is not accessible outside of the function. You should return the `fish` list from the function to use it outside. 3. The `print(fish)` statement should be called after the `fish` function is called, otherwise, it will throw an error because `fish` is not defined at that point. 4. The emoji in the last `print` statement is not properly escaped. Here's the corrected code: ```python # code stuff for noobs # this is a print statement print("comment your opinion!") # this is a variable fish_name = "bloob" # you can print it too print(fish_name) # this, with the hashtag in the beginning, is a comment # next, this is a worm print("(:> l l)") # you can also do emojis in code print("look at
2nd Apr 2024, 7:31 AM
Biraj Sahariah
Biraj Sahariah - avatar