0
Can someone tell why it's not working
I have made a simple card game but in middle it didn't take some command which I have written . Please help me. Line no 102,103 and 104 have an error I cannot understand. https://code.sololearn.com/cBTr1m65PcNn/?ref=app
4 Answers
+ 2
Hello
Could you please math the problem a bit clear..
Like, what is the problem happening..
As when i runned the program It didnt return any error rather than It was a tie
+ 2
The lines 102, 103, 104 are really running...
Len() returns the len of that particular iterable...
So the len() function has no use there...
Because its returning length but the returned value is not used
+ 2
Cop = cop + pile #these three line are not working
Pile=[]
len(pile)
These lines are running I checked
first it adds pile to cop...
and then it clears pile...
the next function len doesnt do anything, that is not an error rather if you were to add
print(len(pile))
it will print out the length of pile which is 0
0
Bro try as many time you want it will be always a tie.
And I am not saying 102,103,104 are not running.
But all the stuff that is happening inside the function is not getting updated.
But thanks for your try. I figured out the issue and corrected it.
I will soon upload it on sololearn also and now it's working nicely as I expected.