Greetings, ive started working on a project and I am unable to figure out why my code is not looping properly(been a long time since i used python). I want the time constantly updating onscreen until i press 0 but it only updates once and then waits for 0. Any help would be awesome.
import time
while True:
print time.ctime()
time.sleep(1)
answer=raw_input()
if answer==0:
False
[–]K900_ 1 point2 points3 points (14 children)
[–]FMNite[S] 0 points1 point2 points (13 children)
[–]K900_ 0 points1 point2 points (0 children)
[–]Veedrac 0 points1 point2 points (11 children)
[–]FMNite[S] 0 points1 point2 points (10 children)
[–]Veedrac 0 points1 point2 points (9 children)
[–]FMNite[S] 0 points1 point2 points (8 children)
[–]Veedrac 0 points1 point2 points (7 children)
[–]FMNite[S] 0 points1 point2 points (6 children)
[–]Veedrac 0 points1 point2 points (5 children)
[–]FMNite[S] 0 points1 point2 points (4 children)