[wingide-users] debug problem
Roelof Wobben
rwobben at hotmail.com
Thu Oct 21 08:17:16 MDT 2010
Hello,
I have this programm :
getal = "1"
vorig = getal[0]
aantal = 0
uitkomst2 = 0
uitkomst = ""
einde = 30
hoevaak = 1
while hoevaak < 3:
for nummers in getal:
if nummers == vorig :
aantal = aantal + 1
vorig = nummers
else:
getal2 = str(aantal)
uitkomst = uitkomst + getal2 + vorig
aantal = 1
vorig = nummers
getal2 = str(aantal)
uitkomst = uitkomst + getal2 + vorig
uitkomst2 = uitkomst2 + len(uitkomst)
hoevaak = hoevaak + 1
print uitkomst
But instead of 21 is the outcome 1121.
Can anyone assist me in finding how I can make this one work.
Roelof
More information about the wingide-users
mailing list