if i write x=[1,2,3,4,5,6] print(x [1:5]
real answer I want then I know the error in this syntax
I always do this i will become error. why this happens. I think the syntax is right, but it always occurs error. I don’t know how to solve this problem and the error will occur as int object is not subscriptable.
New contributor
Jeeva James is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.