hind fathallah wrote:

> hi I need your help plz with this cods ( I want u to  tell wht cod I miss
> to stop the while loop whene I get 3 stars) rm = []

I think you are comparing a string and an integer. That gives False even if 
the values look the same:

>>> i = 3
>>> s = "3"
>>> print i, s
3 3
>>> i == s
False

Use repr() debug the problem:

>>> print repr(i), repr(s)
3 '3'


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to