Which line of code will cause an error? num = [5, 4, 3, , 1] print(num) print(num) print(num) Tell the answer.
Indexerror in last line
The last line i.e print(num) will cause an error because that item doesn't exists in the list. So, I think it will cause an index error. But, you should Check it yourself. Why we will give you the error line or output. We're not interpreter or complier or IDE. These things you can check it yourself. A meaningful question you would have asked should look something like this: Why this is causing an error??? ............. Or Why the output is .....?? ..... So, try to ask meaningful and relevant questions.
Run and see simple 😁
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
Python palindrome challenge.
Number of Ones ( C++ ) question!