
Don B. answered 02/23/23
Tutor
4.3
(12)
PhD in Computer Science with long experience in software engineering
That depends on the programming language! It's not obvious to me. What is it?

Don B.
I ask what language it is because the answer depends at a minimum at what str(10000) does and whether the array ls is 0- or 1-indexed.
Report
02/23/23
Panhary H.
Python02/23/23