- 1
When i run it on my pc it not working. Please anyone help me
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.
+ 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 ☺️☺️
+ 1
Rithea Sreng Ya. But i don't want to do that because i just completed basics only.
+ 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