Or you can say:

while True:
    # do something forever...



On 17 October 2010 14:01, Anthony Staunton <[email protected]> wrote:

> An infinate loop is a loop that never ends, and usually you do not want to
> make any infinate loops (as they could lead to a machine crashing).
>
> e.g.
>
> i =1
> for i > 0:
>   print i
>
>
> that will never end as 1 is always > 0.
>
>
> On 15 October 2010 08:57, Tsolmon Narantsogt <[email protected]> wrote:
>
>> Hello list.
>>
>> What's infinite loop.
>> How it make.
>> Thanks
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Python Ireland" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<pythonireland%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/pythonireland?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Python Ireland" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pythonireland%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pythonireland?hl=en.
>



-- 
Paul Barry - http://glasnost.itcarlow.ie/~barryp
Lecturer, Computer Networking: Institute of Technology, Carlow, Ireland.
http://www.oreillynet.com/pub/au/3677 and http://programming.itcarlow.ie

-- 
You received this message because you are subscribed to the Google Groups 
"Python Ireland" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pythonireland?hl=en.

Reply via email to