numbers = [0,1,2,3,4]
for i in range(len(numbers)):
for j in range(i, len(numbers)):
print("{} vs {}".format(i, j))
0
solved Python: C style inner loop in python
numbers = [0,1,2,3,4]
for i in range(len(numbers)):
for j in range(i, len(numbers)):
print("{} vs {}".format(i, j))
0
solved Python: C style inner loop in python