Simple Problems: Caps and Commas
Kyle E
Kyle_E2006 at hotmail.com
Mon Oct 27 23:13:39 EST 2003
I finished it. Thanks guys, i'll put a copy below so you can run it and
critique it. I anyone would I would appreciate it!
----------------------------------------------------------
##JJ
from time import sleep
import string
##INTRODUCTION:
print "Personal Information Program"
print "----------------------------"
print
print "Please input the requested information... "
sleep(1)
##INPUT NAME:
print "Name: "
sleep(1)
print "What is your first name?"
fname = raw_input ("> ")
print "What is your middle name?"
mname = raw_input ("> ")
print "What is your last name?"
lname = raw_input ("> ")
##INPUT ADDRESS:
print "Location:"
sleep(1)
print "What is your street address?"
saddy = raw_input ("> ")
print "What city do you live in?"
city = raw_input ("> ")
print "What state do you live in?"
state = raw_input ("> ")
print "What is your zipcode?"
zip = raw_input ("> ")
print "Do you have a P.O. Box?"
poan = raw_input ("> ")
if string.lower(poan) == "yes":
print "What is your P.O. Box number?"
pobox = input ("> ")
##TELEPHONE NUMBERS:
print "Telephone Numbers:"
sleep(1)
print "What is your home telephone number?"
print "Ex. (XXX) XXX-XXXX"
hphn = raw_input("> ")
print "Do you have another phone number?"
phnan = raw_input("> ")
if string.lower(phnan) == "yes":
print "Type of phone..."
print "Ex. Cell, Work, Ect."
typhn = raw_input("> ")
print "What is your", typhn, "number?"
typhnn = raw_input("> ")
##AGE:
print "Age:"
sleep(1)
print "How many years old are you?"
age = raw_input("> ")
print "What is your birthdate?"
print "MM/DD/YYYY"
bdate = raw_input("> ")
sleep(2)
##PRINTING LIST
print
print
print "Results:"
print "Name:", fname, mname, lname
print "Address: %s, %s, %s, %s" %(saddy, city, state, zip)
if string.lower(poan) == "yes":
print "P.O. Box:", pobox
if string.lower(phnan) == "yes":
print "Home Number:", hphn
print typhn, "Number:", typhnn
else:
print "Home Number:",hphn
print "Age:", age
print "Birthdate:", bdate
##SDG
----------------------------------------------------------
--
Kyle E
JJ SDG
Missouri
More information about the Python-list
mailing list