Q. Predict the output:


List1 = [ 13, 18, 11, 16, 13, 18, 13]

print (List1.index(18))

print(List1.count(18))

List1.append(List1.count(13))

print(List1)


Answer =

Output:-

1
2
[13, 18, 11, 16, 13, 18, 13, 3]
>>>

8 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