+ 3

Why won't my code work?

https://code.sololearn.com/cgmAvbYq1rcV/?ref=app Sorry for so many comments, just ignore them please.

5th Feb 2020, 7:48 PM
Blabla Blablabla
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.
5th Feb 2020, 8:23 PM
HonFu
HonFu - avatar
+ 4
the 2nd random sample... look at brackets
5th Feb 2020, 7:52 PM
Oma Falk
Oma Falk - avatar
+ 3
HonFu that's good
5th Feb 2020, 8:28 PM
Oma Falk
Oma Falk - avatar
+ 2
Hi, python was made to have less brackets than other languages. But they and so the mess with them are not avoidable
6th Feb 2020, 2:06 PM
Oma Falk
Oma Falk - avatar
+ 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.
6th Feb 2020, 3:39 AM
Sonic
Sonic - avatar
+ 1
6th Feb 2020, 6:23 AM
Oma Falk
Oma Falk - avatar
0
Thank y'all for responses. HonFu, Oma Falk, I added the brackets and added some indentation but it still doesn't work ...
6th Feb 2020, 6:18 AM
Blabla Blablabla
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.
6th Feb 2020, 2:02 PM
Blabla Blablabla