- 1

When i run it on my pc it not working. Please anyone help me

https://code.sololearn.com/ckPmNqbBNEfp/?ref=app

8th May 2020, 3:18 PM
Raj Mazumder
Raj Mazumder - avatar
6 odpowiedzi
+ 3
I did not try your code on PC, but 2 things I noticed: You gave a variable the same name as a function: 'len'. That could cause problems later on... So maybe the error comes from re-running the script without clearing your workspace before? You can get the last element of a list by res[-1], too.
8th May 2020, 4:10 PM
Lisa
Lisa - avatar
+ 2
Lisa you right. I forgot to clear my workspace.. thx for helping And Right i will change the variable name 'len' Now the code run smoothly. Thx for helping ☺️☺️
8th May 2020, 4:23 PM
Raj Mazumder
Raj Mazumder - avatar
+ 1
Rithea Sreng Ya. But i don't want to do that because i just completed basics only.
8th May 2020, 4:45 PM
Raj Mazumder
Raj Mazumder - avatar
+ 1
Have you installed python runtime on your pc and if installed have you checked the version of python on your pc because on sololearn it is python3
10th May 2020, 7:16 AM
𝖆𝖊𝖙𝖍𝖊𝖗
𝖆𝖊𝖙𝖍𝖊𝖗 - avatar