+ 1

Please help me. Append works so strangely.

I cannot find bug. Append does not appends. I changes all of element to the list what I want to append. Maybe something was wrong but I cannot find. I hope like this. [1] [1,2] [1,2,3] [1,2,3,4] But it works like [1] [2,2] [3,3,3] [4,4,4,4] How can it does with .append????? Please help me. Thankyou. https://code.sololearn.com/chVNHS43dqGz/?ref=app

22nd Dec 2018, 5:04 PM
Hyunsu Park
Hyunsu Park - avatar
6 ответов
24th Dec 2018, 5:19 AM
Alice
+ 3
Great! You figured out by yourself😊 When I have some problems with my code, I try to simplify it or divide it into parts, especially when the code is long and complicated😊 Btw, you wrote the code very politely so that others can easily understand😄
24th Dec 2018, 11:40 AM
Alice
+ 2
Merry Christmas to you too
24th Dec 2018, 2:26 PM
Alice
+ 1
I've got the answer. Thank you! Your answer makes me think step by step. It does help. :) https://code.sololearn.com/cmz9Q7PhQ2s8/?ref=app
24th Dec 2018, 10:46 AM
Hyunsu Park
Hyunsu Park - avatar
+ 1
Your words makes me happy. Thank you very much. I tried to explane but it is first time that I heard someone understands.(because my code is a little bit dirty) Thanks again and Merry Christmas 🎄
24th Dec 2018, 1:19 PM
Hyunsu Park
Hyunsu Park - avatar
0
Thanks for your help. I really wanted it works like yours. But It doesn't. In the end of the code there are bug report.
24th Dec 2018, 6:49 AM
Hyunsu Park
Hyunsu Park - avatar