Session Ready
Exercise

Converting quarters into months

A company has a challenge in separating data into months. It has received the following data:

Quarter Amount
Quarter 1 700
Quarter 2 650

The split across the months within each quarter is equal. Your goal is to separate this data into a list format containing the amounts per month for the first two quarters.

Instructions
100 XP
  • Create a list for quarters containing the numerical units per quarter, and initialize a new empty list qrtlist. The latter step has been done for you.
  • Create a for loop that converts the qrt in the quarters list into months with the formula round(qrt/3, 2). The round() function with the second argument 2 rounds the numbers down to a readable format.
  • Add the three equal values of month to qrtlist.
  • Print the qrtlist.