[Tutor] What can I do with this code?

2005-08-09 Thread Nathan Pinno
I coded the following just for fun:   import randomcool = ['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

Re: [Tutor] What can I do with this code?

2005-08-09 Thread R. Alan Monroe
> print random.choice(cool) > What can I do with it, other than let it be a fun example of coding? Make a Magic 8 ball! :^) Alan ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] What can I do with this code?

2005-08-10 Thread python-tutor
How about changing it into a math quiz program? You have the program output random problems ("What is 14 * 3 ?") And then you can output appropriate random insults, words of encouragement, or praise as appropriate until the user gets the answer right. Just be careful with division. You proba