To generate a random t-shirt size from xs through xl in Python, you can define a list containing the different sizes and then use the random
module to randomly choose one of the sizes from the list. Here's an example function to do this:
main.py113 chars6 lines
You can then call this function whenever you need to generate a random t-shirt size:
main.py84 chars3 lines
This will output something like:
main.py43 chars2 lines
gistlibby LogSnag