I am having trouble with a individual coding problem I am doing in python: Ar = int(input("How many rows does your matrix have? ")) Ac = int(input("How many columns does your matrix have? ")) win = GraphWin('Matrix A', 300,300) win.setBackground('white') for p in range(Ac): y = 75 + 40*p for q in range(Ac): x = 50 + 50*q inputText = Entry(Point(x,y), 3) inputText.setText('0') inputText.draw(win)
I am having trouble with a individual coding problem I am doing in python:
Ar = int(input("How many rows does your matrix have? "))
Ac = int(input("How many columns does your matrix have? "))
win = GraphWin('Matrix A', 300,300)
win.setBackground('white')
for p in range(Ac):
y = 75 + 40*p
for q in range(Ac):
x = 50 + 50*q
inputText = Entry(Point(x,y), 3)
inputText.setText('0')
inputText.draw(win)
## The issue I having is that I want to be able to get the users inputs from their entries so that I can do matrix operations on them. However, anytime I try to append their entries at best I just get their last entry repeated (n)(m) times. I would be very thankful if you can show me how I can change my code so that I append all user entries correctly.
Step by step
Solved in 3 steps