<snip> > > End of Tutor Digest, Vol 94, Issue 53 > ************************************* while guess != the_number and tries < 5: if guess > the_number: print("Lower...") else: print("Higher...") guess = int(input("Take a guess: ")) tries += 1 if guess == the_number: print("good job the number was, " , the_number) print("it took you" , tries," tries.") else: print("Sorry you took to many tries") THANKS Steve and Dave got it working now. roGca =================================================== Please reply and change the digest subject to the original subject or relevant subject if new. While you did an excellent job not top-posting it would also be good if you trimmed out the irrelevant sections from your reply.
Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor