-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?

asked Sep 5, 2020 at 9:38
1

2 Answers 2

1
for i in range(5, len(array)):
 for j in range(i+1, ...):
 rest of code
answered Sep 5, 2020 at 9:40
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, ...)):
 ...
answered Sep 5, 2020 at 9:40

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.