₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,260 members, 8,510,894 topics. Date: Saturday, 31 October 2026 at 11:07 AM

Toggle theme

Silento's Posts

Nairaland Forum › Silento's Profile › Silento's Posts

1 2 3 4 5 6 7 8 ... 36 37 38 39 40 (of 40 pages)

Programming › Re: Help With This Python Algorithm.... by silento(m): 12:30am On Sep 29, 2015
this is a thing I did while am new to python
solution....
decide random number outside the while loop
ex:
number = random.choice(range(200))
run = 0
while run !=0:
code ...
if choice > number :
print number is lower
if choice is < number :
print number is. higher

if choice == number:
print yes

run = 1

1 2 3 4 5 6 7 8 ... 36 37 38 39 40 (of 40 pages)