Program xy.py

Ethan Rosenberg <[email protected]>
Newsgroups gmane.comp.python.tutor
Message-ID <CAFQ-1+cvgN-26y7=vXsG5g9r7k7iXat1RG6eqZFtN1T047zq6g@mail.gmail.com>
Thank you for the excellent help you give to python programmers.

This program should put i*j  in a 2x2 matrix.  It does not.

#xy.py
#Program to put i*j [indexes] in a 2x2 matrix

mat=[][]
for i =0:
    for j in range(0,1):
        mat[0][j] = i*j
for j=0:
    for i in range(0,1):
        mat[i][0] = i*j

print(mat)

Thank you in advance.

Ethan Rosenberg
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.