Program matx.py
Ethan Rosenberg <[email protected]>
| Newsgroups | gmane.comp.python.tutor |
|---|---|
| Message-ID | <CAFQ-1+d0-F-YDKfCq8SMzW-f2OyJ7kkyVHeOt4C4_d=6_-qj-A@mail.gmail.com> |
Help Desk -
Thank you for the excellent help you give to Python programmers.
Do I have to be registered to submit a question?
This program is supposed to insert i*j into the cells of a 2x2 matrix. I
receive a syntax error.
#matx.py
#program to add i*j to cells of 2x2 matrix
mat = [][]
for i in range(0,1):
for j in range(0,1):
mat[i][j] = i*j
print(mat)
Thank you in advance.
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor