+ 2

Debugging a one liner [Solved]

As you can see, THIS CODE IS SUPPOSED TO BE A ONE LINER, BUT I CANT FIND THE SYNTAX ERROR IN THERE.... I ALREADY TRIED TO WRITE THE CODE DIFFERENT (SEE BELOW) TO DEBUG IT, BUT THAT DID NOT HELP ME... SO IF ANYONE HAS A GIST OF WHAT I DID WRONG: PLEASE TELL THAT. AND IF IT IS ONLY A SMALL IDEA. I AM DEBUGGING FOR HOURS NOW https://code.sololearn.com/chFV6RKLKzCV/?ref=app OHH AND SORRY FOR CAPS, MY TAB DECIDED TO SET ON CAPS AFTER I TYPE A LETTER..... For more Information to this code: Tab the star on the left, I will post the corresponding explanation, if finished...

16th Oct 2020, 1:57 PM
Alexander Thiem
Alexander Thiem - avatar
7 Antworten
+ 8
Alexander Thiem It looks like you got your solution. However, I hope you don't plan on writing code this way. It's quite horrible to even consider this type of coding.
16th Oct 2020, 6:00 PM
David Carroll
David Carroll - avatar
+ 5
I honestly don't get the fascination of python coders with one liners... It's a horrible practice.
17th Oct 2020, 9:13 AM
Haris
Haris - avatar
+ 3
Ohh, I am so sorry if I annoyed anyone, I have solved my issue! Mirielle By normal debugging! I forgot a [ and a ] from the most beginning to the end, and a statement in part 4....
16th Oct 2020, 3:15 PM
Alexander Thiem
Alexander Thiem - avatar
+ 3
Erialdo Meta 🇦🇱 For more Information to this code: Tab the star on the left, I will post the corresponding explanation, if finished...
16th Oct 2020, 6:12 PM
Alexander Thiem
Alexander Thiem - avatar
+ 3
yeah, it is horrible. I will never write my normal codes like that.... Only they for SL
17th Oct 2020, 9:28 AM
Alexander Thiem
Alexander Thiem - avatar
+ 1
Mirielle I checked, every bracket has its corrosponding closing bracket. rewriting the code would maybe take some time.....
16th Oct 2020, 2:36 PM
Alexander Thiem
Alexander Thiem - avatar
+ 1
if anyone wants to get the full code if published, then Follow this question, i will post it here.....
16th Oct 2020, 3:16 PM
Alexander Thiem
Alexander Thiem - avatar