Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # exemplos
- lista = [8, 7, 9]
- print(lista)
- print(" 0 1 2")
- print("----------")
- print("Compara e avanca o indice i")
- for i in range(len(lista)):
- for j in range(i):
- print("comparando: {}[{}] x {}[{}]".format(lista[j], j, lista[i], i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement