EECS 183 Labs

EECS 183 Lab 9: Python

Lab due on your scheduled lab day (Apr 4 - Apr 8)

Lab accepted for full credit until Monday, April 11, 2022, 11:59 pm Eastern

In this lab, you are writing code in Python.

After completing this lab, you will be able to:

You should complete this lab in small groups of about 4 students. For all labs in EECS 183, to receive a grade, every student must individually submit the Lab assignment.

Starter Files

This week we will be using to complete the lab. You will not need to install Python or any other program on your computer.

NOTE: the following steps are exactly the same as we have been using for exercises during lectures since lecture 12. The additional requirement for this lab will be to download and submit your work to the autograder.

  1. The starter files can be found using this link -
  2. Once you are at, you will need to log in. You can select “Continue with Google” and use your umich email to login - you do not need to create a account. Note you are free to create an account or login however you wish - using “Continue with Google” is the easiest option if you choose it.

  3. After you sign in, you must follow the link again -
  4. Select Fork repl to create your own copy of the lab files.

You should now see the lab code and will find the following files:

If you have done all of the steps above correctly, you should see the following when you run your program. Select the large green Run button at the top of the page.

Lab Assignment

This week, the lab is about running your first Python program.

Welcome to Potions Class

“You are here to learn the subtle science and exact art of potion-making,” he began. He spoke in barely more than a whisper, but they caught every word — like Professor McGonagall, Snape had the gift of keeping a class silent without effort. “As there is little foolish wand-waving here, many of you will hardly believe this is magic. I don’t expect you will really understand the beauty of the softly simmering cauldron with its shimmering fumes, the delicate power of liquids that creep through human veins, bewitching the mind, ensnaring the senses …​ I can teach you how to bottle fame, brew glory, even put a stopper on death — if you aren’t as big a bunch of dunderheads as I usually have to teach.”

— J.K. Rowling Harry Potter and the Sorcerer’s Stone

Elixir to Induce Euphoria

Step 1: Bewitch the Mind and Ensnare the Senses

Felix Felicis

Step 2: Bottle Fame and Brew Glory

WARNING Do not delete the function call from step 1, make_elixir_to_induce_euphoria(), but add this function call after.

Sicilef Xilef

Step 3: A Deadly Mixture

How to Submit

NOTE Your browser may require you to acknlowledge the download. Select Keep to download the file. Additionally, every time you download the file, it will not replace the previous download. The file you submit to the autograder must be named If you need to submit more than once, delete the file from your downloads folder so that the next download will have the correct filename.