This post was written as part of the Math section for the 2019-2020 Future Science Leaders program. If you’re interested in using any of the resources below for your own outreach program, there are two caveats. You are free to use any of my materials with proper attribution. However, some of the materials below were created or co-created by Matt Coles and for these you should e-mail us to check.
Day 2 — Coding in Python
Welcome to Day 3 of the Math section of Future Science Leaders! Today, you will get to explore a series of activities that will have you coding and problem solving in Python. If you don’t have Python already installed your laptop, no worries! Simply go to repl.it. There should be no need to make an account. We’ll be walking around to make sure you’re able to get up and running.
If you’re new to Python or coding, or if you could use a refresher, then try exploring the Numbers worksheet next. Afterward, check out Conditional Statements, and then Loops. If you know how to program in another language, and want to see one of many things that makes Python special, you can check out Loops2.
Once you feel comfortable with the content above, you might wish to try out the Choose Your Own Adventure game. If you think you might like to build your own, then why don’t you try making your very own Choice Game?
If these challenges still aren’t hard enough for you, then you can try out some of our challenge problems. For example (in order of difficulty):
Note: to attempt the Caesar challenge, you’ll first want to “Fork” the
FSL20d2 REPL before getting
started. Feel free to ask us for help along the way! If some of the Python
syntax or notation seems “weird”, that’s because we haven’t talked about
it. Come ask us for some pointers!