Ich habe einen wirklich einfachen Test in einer Datei namens test1.py eingerichtet, aber es scheint mir einen Doppelpunkt erwarteten Fehler, oder alternativ, wenn ich es ausführen, sagt es ungültige Syntax. Klasse test1:Doppelpunkt erwartet in Python
def counter(self):
while loopcount < 1000:
loopcount = loopcount + 1
if loopcount 1000:
print(loopcount)
Was 'ist, wenn LoopCount 1000:' tun soll? – jwodder
'if loopcount == 1000:' – frozen