Question: Under what initial conditions (value for N) will this loop run forever? N = while N: ... # A number N -= 1

Under what initial conditions (value for N) will this loop run forever? 

Under what initial conditions (value for N) will this loop run forever? N = while N: ... # A number N -= 1

Step by Step Solution

3.39 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In Python the condition while N checks if the value of N is truthy In Python any non... 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!