Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Richard_C

  • 2 years ago

An interesting question about the 'for' loop from the textbook. Just for beginners. What is the printout? x = 4 for i in range(x): for j in range(x): print 'ij', i, j, x = 2

  • This Question is Closed
  1. rsmith6559
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    ij 0 0 ij 0 1 ij 0 2 ij 0 3 ij 1 0 ij 1 1 ij 2 0 ij 2 1 ij 3 0 ij 3 1

  2. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy