I am new on Python.
When I do "while True" it goes wrong and stops. Why?
Your overloading it. It's printing Hello every possible frames and therefore crashes it. Try this instead:
import time while True: time.sleep(5) print("Hello")
By doing that, it'll wait 5 seconds before print Hello.
hello every possible time it can, no interval, no stopping. Use the
time module to add a pause.
from time import sleep interval = <TIME IN SECONDS YOU WANT TO INTERVAL> while True: print("Hello") sleep(interval)
Of course, you put your interval into the
I would like to test while True and se how it prints "Hello" over and over again but it dosen´t print it at all. And I have got a message (not from Python) on the screen that something is wrong. I have to restart everything. Is my computer overloaded?