0
Good morning, I’m not able to complete my code, I’ve already used For i in range and for j in range, but I can’t complete the code because I need to store the result in another variable and then see if the results are greater than x, and then print to show me the column and row that is the highest value, I’m using Python along with Pycharm 2016.1
matriz = [[11,12,13,14]
[15,16,17,18]
[19,20,21,22]]
for i in range(matriz.__len__()):
for j in range(matriz.__len__()):
if matriz [i][j]>x:
Please enter the relevant code you have
– Miguel
Welcome to Stackoverflow. Share your code to make it easy for people to help you.
– Rubico
Thanks for the tip, the matrix is not accepting here as a variable, in pycharm it already accepts
– user48905
You can complete what is inside if sff. Does it give an error? Which?
– Miguel
is giving this error, for i in range(matrix.Len()): Indentationerror: Unexpected indent
– user48905
This has to do with the spacing at the beginning of the line
– Miguel
Possible duplicate of How to get the highest value of a python array / vector?
– Woss