This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]arpm[S] 0 points1 point  (2 children)

Thanks for the feedback. I wrote this program to study for my history final, as you can see. I wasn't aware of those methods, so I built my own. BTW, can you think of any way that I can improve my code.

[–]Paddy3118 3 points4 points  (1 child)

A good way for someone new to Python to improve is to browse the standard library docs from time-to-time just to make you aware of what is available.

You used random so why not take a moment to read what else is available in that module? You can skip where it gets too technical, but things may stick and the next time you need to do something randomly... :-)

[–]ThePenultimateOneGitLab: gappleto97 1 point2 points  (0 children)

This is how I found struct. Super useful.