Guest User

Untitled

a guest
Oct 15th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. T = 2
  2. AList = [[0,0,0,0,0], [0,0,0,0,0]]
  3. BList = [[1,2,4,2,3], [1,2,4,2,4]]
  4.  
  5. def magic(i):
  6. AList[t][i] = int(AList[t][i]) + 1
  7. AList[t][i+1] = int(AList[t][i+1]) + 2
  8. AList[t][i+2] = int(AList[t][i+2]) + 3
  9.  
  10. for t in range(T):
  11. nie = False
  12. for i in range(len(AList[t]) - 2):
  13. Diff = int(int(AList[t][i]) - int(BList[t][i]))
  14. if Diff > 0:
  15. print('NIE')
  16. nie = True
  17. break
  18. elif Diff == 0:
  19. pass
  20. else:
  21. for r in range(Diff): #Here, this loop doesn't work
  22. print('asd')
  23. magic(i)
Add Comment
Please, Sign In to add comment