DEV Community

Discussion on: Challenge: Write a program that never stops

Collapse
 
_rodrigooliv profile image
Rodrigo Martins

Python

valuе = 0
while valuе < 1:
    value = valuе + 1

Python

i = 0
j = 10
while not i is j:
    i += 1

print("i is j: " + str(i is j))

j = 257
while not i is j:
    i += 1

print("unreachable")