Question: A written explanation is needed for the following problem. Predict the outcome of each line: I = 1 j = 0 while I < 10:

A written explanation is needed for the following problem. Predict the outcome of each line:

 I = 1

j = 0

while I < 10:

I + = 1

j + = 2 * 2

print (i) #line 1

print (j) #line 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In the given code snippet we have two variables I and j initialized with values 1 and 0 respectivel... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!