-1

In this example I want to write jj,i,j in a list or array. In the first row the jj values, in the second row i and j in the third row.

rows = 4
cols = 6   

jj = -1
for i in range(rows):
    for j in range(cols):
        jj += 1

How can I do it?

Karl Knechtel
  • 62,466
  • 11
  • 102
  • 153
Joachim
  • 375
  • 1
  • 12
  • The question is not answered. The inspector should not work so superficially here. I have the feeling that a senior teacher is sitting there. – Joachim Aug 31 '23 at 20:40
  • In the meantime, I ask ChatGPT. I got an answer in 10 seconds. – Joachim Aug 31 '23 at 21:05
  • When I ask your question in ChatGPT, I also get an answer. A useless answer, but an answer. – Matthias Aug 31 '23 at 21:10
  • The answer of ChatGPT solved my problem. It may not have worked for you. The system is not yet stable. But it will evolve. And stackoverflow has to be more customer-friendly, otherwise people like me, people with relatively simple questions, will leave. – Joachim Sep 01 '23 at 08:30

0 Answers0