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.

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post