[Tutor] Begginer in need of help

Alan Gauld alan.gauld at blueyonder.co.uk
Mon Aug 9 20:43:01 CEST 2004


s = 0
a = 1

name = "dan"
while a < 4:

    # You need to increment a each time through the loop
    # so that eventually it equals 4!

    my_name = raw_input("what is my name? ")
    if my_name == "julian":
        print "correct"
        a = 10
    elif s < 3:
        s = s + a
        print "Nope, you have, ",3-s," tries left"

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/





More information about the Tutor mailing list