Thread: looping scripts

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    10
    Rep Power
    0

    looping scripts


    i want to know how to loop this script to make it show the raw_input again:

    Code:
    #############################
    #############################
           #Name-a-tron#
    #############################
    #############################
    
    nom = raw_input("What the devil is your name?(please print full name)")
    if nom == "Kent Mcrae":
        print """ Start a fire, not just any fire, a gas fire, or an electrical fire.
        Wait! you should burn down a house. WEEEEEEEEEEEEEEEE Fire!!"""
    
    if nom == "Dane Mcrae":
        print "Hey!Hey!Hey!Face!hehehehehehehehehehe"
    
    if nom == "Conrad Porter":
        print "Sick! I pity you. Just kidding(or am i?)."
    
    if nom == "Dylan Moore":
        print "I'm Dylan.Not you. Shut-Up!. Blarghh."
    
    if nom == "Tadas the Fag":
        print "Your a faggot. Yah you heard me. Vocab!Fag!MJ lover!"
    
    if nom == "Prof. Tor Coolguy":
        print "No your not! That's Strong Bad's alias! I mean.... Shut up!"
        
    if nom == "Evil Amoeba":
        print "Haha! I don't know your real name... Damn."
    
    if nom == "Arthur Butcher":
        print "Mini-cans of Pepsi!! Wow..."
    
    if not nom:
        print "Haha, your name sucks so bad, I DON'T EVEN WANT TO MAKE A WITTY COMEBACK FOR IT!"
    any suggestions?
  2. #2
  3. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    Code:
    while True:
                                                                                    
            name  = raw_input("What is your name?(please print full name)")
                                                                                    
            if name == "xlordt":
    
                    print "sup sup tkd"
                                                                                    
            if name in 'q':
    
                    print  'Good Bye'
                    break

IMN logo majestic logo threadwatch logo seochat tools logo