Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #-------------------------------------------------------------------------------
  2. # Name: module1
  3. # Purpose:
  4. #
  5. # Author: mauro
  6. #
  7. # Created: 20/03/2017
  8. # Copyright: (c) mauro 2017
  9. # Licence: <your licence>
  10. #-------------------------------------------------------------------------------
  11.  
  12. def main():
  13. pass
  14.  
  15. if __name__ == '__main__':
  16. main()
  17.  
  18. A=[[0,1,1],[2,1,0],[1,1,0]]
  19. B=[[0,0,0],[0,0,0],[0,0,0]]
  20.  
  21. def echange(l1,l2):
  22. for c in range(3):
  23. x=A[l1][c]
  24. A[l1][c]=A[l2][c]
  25. A[l2][c]=x
  26. x=B[l1][c]
  27. B[l1][c]=B[l2][c]
  28. B[l2][c]=x
  29. # end of c
  30. # end echange()
  31.  
  32. def multiplie(l,x):
  33. for c in range(3):
  34. A[l][c]=x*A[l][c]
  35. B[l][c]=x*B[l][c]
  36. # end of c
  37. # end multiplie()
  38.  
  39. multiplie(1,100)
  40. print(A)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement