What will be the output of the given statement? |
print([1,2,3,4,5]+5) |
A) [6, 7, 8, 9, 10]
B) [1, 2, 3, 4, 5, 5]
C) Generate Error
D) None of the above
Correct Answer: C
Solution :
[c] It will generate error i.e you can only concatenate list (not "int") to listYou need to login to perform this action.
You will be redirected in
3 sec