+ 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...
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.
+ 5
I honestly don't get the fascination of python coders with one liners...
It's a horrible practice.
+ 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....
+ 3
Erialdo Meta 🇦🇱
For more Information to this code:
Tab the star on the left, I will post the corresponding explanation, if finished...
+ 3
yeah, it is horrible. I will never write my normal codes like that....
Only they for SL
+ 1
Mirielle I checked, every bracket has its corrosponding closing bracket.
rewriting the code would maybe take some time.....
+ 1
if anyone wants to get the full code if published, then Follow this question, i will post it here.....