-4

In C++ or Java we can define indexes in loop like :

for(int i = 5 <---; i < array.size(); i++)
     for(j = i + 1 <---....)

I am newbie in Python and can we impelement the same as above in python?

1

2 Answers 2

1
for i in range(5, len(array)):
   for j in range(i+1, ...):
       rest of code
Sign up to request clarification or add additional context in comments.

Comments

1
for i in range(5, len(array)):
    for j in range(i + 1, ...)):
        ...

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.