Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 25th, 2004, 09:39 PM
danemcrae danemcrae is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 10 danemcrae User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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?

Reply With Quote
  #2  
Old May 25th, 2004, 10:08 PM
xlordt's Avatar
xlordt xlordt is offline
Only the strong survives!!.
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Feb 2003
Location: A World of wonders.
Posts: 5,573 xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 111202 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111202 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111202 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111202 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111202 Folding Title: Super Ultimate Folder - Level 1Folding Points: 111202 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 11 h 9 m 33 sec
Reputation Power: 406
Send a message via ICQ to xlordt Send a message via AIM to xlordt Send a message via MSN to xlordt Send a message via Yahoo to xlordt Send a message via Google Talk to xlordt Send a message via Skype to xlordt
Facebook MySpace
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > looping scripts

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap