Session Ready
Exercise

Execute Python commands

Your boss has the habit of tapping you on the shoulder and asking you to do random tasks. They always ask which day you can get it done by. You have noticed that you keep saying "Friday", but this is catching up to you. Create a random day generator to give your boss an answer. This way your work will be evenly distributed throughout the week. This solution is almost complete: "from random import choices;days = ['Mo', 'Tu', 'We', 'Th', 'Fr']"

What is the correct syntax for a "one liner" using python that will print a random day of the week? Feel free to experiment in the IPython console!

Note that in this chapter you'll be learning many nifty IPython commands to perform basic operating system tasks. As a result, most exercises will be Multiple Choice. But don't get too comfortable because towards the end of the chapter and throughout the rest of the course you'll be writing your very own python scripts to automate command line tasks!

Instructions
50 XP
Possible Answers