HomeList Manipulation Find the errors: 2 Comments Facebook Twitter Q. Find the errors:(a)L1 = [ 1, 11, 21, 31]An = L1.remove(41)(b)L1 = [ 1, 11, 21, 31]An = L1.remove (31)print (An + 2)Answer =(a)Error is that 41 is not present in list.(b)Error in Line 3 that list cannot add with integer.
Some how Can integer be added to a list
ReplyDeleteThats why, it is giving Error.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )