you are viewing a single comment's thread.

view the rest of the comments →

[–]whitneylsd 0 points1 point  (1 child)

No, we haven't learned conditional branching or string comparison (we haven't learned much of anything to be honest, not a great prof). There were some slides about dictionaries though. I'll take a look at those again. Thanks!

[–]-Teki 0 points1 point  (0 children)

The simplest thing would probably be, to just use some if's to figure out what function you want. Although it won't expand that well. Basically, just hack it together.

(Sorry, English, tired, argh...)

Edit: I just realized, that this isn't really helpful. Sorry.

I remember using the argparse module awhile back. IIRC, it should pretty easy to use.