Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- T = 2
- AList = [[0,0,0,0,0], [0,0,0,0,0]]
- BList = [[1,2,4,2,3], [1,2,4,2,4]]
- def magic(i):
- AList[t][i] = int(AList[t][i]) + 1
- AList[t][i+1] = int(AList[t][i+1]) + 2
- AList[t][i+2] = int(AList[t][i+2]) + 3
- for t in range(T):
- nie = False
- for i in range(len(AList[t]) - 2):
- Diff = int(int(AList[t][i]) - int(BList[t][i]))
- if Diff > 0:
- print('NIE')
- nie = True
- break
- elif Diff == 0:
- pass
- else:
- for r in range(Diff): #Here, this loop doesn't work
- print('asd')
- magic(i)
Add Comment
Please, Sign In to add comment