Jan-17-2017, 04:48 AM
I can do:
[1, 2, 3] + [4, 5, 6]
But I cannot do:
Why?
[1, 2, 3] + [4, 5, 6]
But I cannot do:
nums=[1, 2, 3] nums[1:]+nums[0]TypeError: can only concatenate list (not "int") to list
Why?