repeating variable? insight for noob | Sololearn: Learn to code for FREE!

0

repeating variable? insight for noob

#expecting infinite output of condition, but terminal provides no output? number = 15 while number <= 1: print(number)

4/22/2017 10:20:42 AM

Sasha Vaseghi

2 Answers

New Answer

+2

15 <= 1 is always false. There is no iteration of the while loop.

+1

#Facepalm... <= 1......