[Tutor] Python program with multiple answers

Brett Ritter swiftone at swiftone.org
Wed May 11 14:57:01 CEST 2011


On Wed, May 11, 2011 at 6:49 AM, Johnson Tran <aznjonn at me.com> wrote:
> I've been working on a Python program where I create an 8 ball that will allow you to ask questions and will reply back with 20 possible answers.
...
> if anyone could point me in the right direction it'd be really helpful

Answer cloudy, try again later [couldn't resist]

Patrick gave a decent summary. I'd suggest for learning purposes take
each step at a time:
1) Save the questions, then once that works:
2) Save the corresponding answers, then
3) Print them, then
4) Sort them

That way if you encounter any problem it's limited in scope rather
than trying to take it all in at once.
-- 
Brett Ritter / SwiftOne
swiftone at swiftone.org


More information about the Tutor mailing list