+ 3
Why won't my code work?
https://code.sololearn.com/cgmAvbYq1rcV/?ref=app Sorry for so many comments, just ignore them please.
8 Respostas
+ 5
If you have a function call with long_named arguments and/or many parentheses you can make your life easier by formatting your code better.
For clarity I use short names, but obviously it works the same with longer names.
Don't write:
print(some_function(arg1, f(2, 5*6)))
But rather something like:
print(
some_function(
arg1, f(2, 5*6)
)
)
Now you can quickly see which bracket belongs to what, or if there's one too few or too many.
+ 4
the 2nd random sample...
look at brackets
+ 3
HonFu that's good
+ 2
Hi,
python was made to have less brackets than other languages.
But they and so the mess with them are not avoidable
+ 1
Python programmers are really good at indenting their code for clarity as the language already forces some indentation for syntactic purposes. So follow the good example provided above.
+ 1
https://code.sololearn.com/cAbimTbJxXVU/?ref=app
you had still bracket problems
0
Oma Falk Thanks so much I'm so dumb I literally stared at it for so long and couldn't find the problem although when I fixed it now along with your solution the code makes perfect sense. Thanks again.