Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-------------------------------------------------------------------------------
- # Name: module1
- # Purpose:
- #
- # Author: mauro
- #
- # Created: 20/03/2017
- # Copyright: (c) mauro 2017
- # Licence: <your licence>
- #-------------------------------------------------------------------------------
- def main():
- pass
- if __name__ == '__main__':
- main()
- A=[[0,1,1],[2,1,0],[1,1,0]]
- B=[[0,0,0],[0,0,0],[0,0,0]]
- def echange(l1,l2):
- for c in range(3):
- x=A[l1][c]
- A[l1][c]=A[l2][c]
- A[l2][c]=x
- x=B[l1][c]
- B[l1][c]=B[l2][c]
- B[l2][c]=x
- # end of c
- # end echange()
- def multiplie(l,x):
- for c in range(3):
- A[l][c]=x*A[l][c]
- B[l][c]=x*B[l][c]
- # end of c
- # end multiplie()
- multiplie(1,100)
- print(A)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement