I wrote a simple algorithm and it keeps getting stuck in a loop. I
guess I'm just to tired to figure it out:
compcount=[5,4,2,2]
suitrank=[0,0,0,0]
trump=2
l,lt=0,0
while l4:
while lt4:
if l==trump:
l+=1
if l3:
break
if lt==trump
On Mar 31, 8:22 pm, [EMAIL PROTECTED] wrote:
I wrote a simple algorithm and it keeps getting stuck in a loop. I
guess I'm just to tired to figure it out:
compcount=[5,4,2,2]
suitrank=[0,0,0,0]
trump=2
l,lt=0,0
while l4:
while lt4:
if l==trump:
l+=1
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
|I wrote a simple algorithm and it keeps getting stuck in a loop. I
| guess I'm just to tired to figure it out:
The easiest way to figure out somethinglike this is to print your variables
from inside the loop to see things stick
thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Regular Expressions
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Milan (migues)
Assigned to: Gustavo Niemeyer (niemeyer)
Summary: finditer stuck
thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Regular Expressions
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Milan (migues)
Assigned to: Gustavo Niemeyer (niemeyer)
Summary: finditer stuck
thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Regular Expressions
Group: Python 2.5
Status: Closed
Resolution: Duplicate
Priority: 5
Private: No
Submitted By: Milan (migues)
Assigned to: Gustavo Niemeyer (niemeyer)
Summary: finditer stuck
of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Regular Expressions
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Milan (migues)
Assigned to: Gustavo Niemeyer (niemeyer)
Summary: finditer stuck