Re: [Tutor] Infinite Loop

2011-09-24 Thread nehal dattani
Hi, Please modify your else block . else: print("Higher...") guess = int(input("Take a guess: ")) tries += 1 This should work for you. Regards, Nehal Dattani On Sat, Sep 24, 2011 at 8:13 PM, Cameron Macleod wrote: > Hi, > > I've bee

Re: [Tutor] Infinite Loop

2011-09-24 Thread nehal dattani
Hi cameron, Sorry, I didn't tested it properly. Actual block should go like this while guess != the_number: if guess > the_number: print("Lower...") else: print("Higher...") guess = int(input("Take a guess: ")) tries += 1 On Sat

Re: [Tutor] Converting a string into dictionary references

2012-04-23 Thread nehal dattani
Hi, > Unfortunately I am not, this needs to happen in python. > > > Please see if following helps. http://stackoverflow.com/questions/5863999/python-cut-example Regards, Nehal Dattani ___ Tutor maillist - Tutor@python.org To unsubscri