Why this doesn't stop at p=5? When the q counter hits the 1 it should stop, right? Sorry, it's late and I'm getting frustrated.
... q=0
... p=1
... while q < 1:
... for range in [0,10]:
... if p < 10:
... print p,"elso"
... if p > 2:
... print p, "masodik"
... if p > 4:
... print p, "sikerult"
... q+=1
... p+=1
... else:
... p+=1
... else:
... p+=1
... else:
... print p, "nem jo"
... p+=1
...
1 elso
2 elso
3 elso
3 masodik
4 elso
4 masodik
5 elso
5 masodik
5 sikerult
6 elso
6 masodik
6 sikerult