I coded the following just for fun:
 
import random
cool = ['Cool math!','Awesome!','Way to go!','Happy problem solving!']
while 1:
    start = raw_input("Do you want to do some math? Yes or No")
    if start == "Yes":
        x = int(raw_input("First number:"))
        y = int(raw_input("Second number:"))
        print x*y
        print random.choice(cool)
    elif start == "No":
        break
print "Goodbye and happy problem solving!"
 
What can I do with it, other than let it be a fun example of coding?
 
Nathan
---------------------------------------------------------------
Early to bed,
Early to rise,
Makes a man healthy, wealthy, and wise.
--Benjamin Franklin
-------------------------------------------------------------------
BEGIN:VCARD
VERSION:2.1
N:Pinno;Nathan;Paul;Mr.
FN:Pinno, Nathan Paul
NICKNAME:Spam_swatter
ORG:Woffee;Executive
TITLE:Owner/operator
TEL;WORK;VOICE:7806085529
TEL;CELL;VOICE:7806085529
ADR;WORK:;President/CEO;Box 1783;Camrose;Alberta;T4V1X7;Canada
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:President/CEO=0D=0ABox 1783=0D=0ACamrose, Alberta T4V1X7=0D=0ACanada
ADR;HOME:;;Box 1783;Camrose;Alberta;T4V1X7;Canada
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Box 1783=0D=0ACamrose, Alberta T4V1X7=0D=0ACanada
X-WAB-GENDER:2
URL;HOME:http://falcon3166.tripod.com
URL;WORK:http://zoffee.tripod.com
BDAY:19850221
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
REV:20050809T235931Z
END:VCARD
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to