# Create displayList
displayList = []
# Loop through the prices in levelsList.
# During each loop:
# - Create a variable called priceLevelLabel consisting of the text 'Price Level: '
followed by the price.
# - Add priceLevelLabel and the price as two separate items to a new list (the sub-List).
# - Append the sub-List to displayList. for price in self.levelsList:
. . .
# Create a variable called previousPriceLabel consisting of the text 'Previous Price: ' followed
# by previousPrice. # Add previousPriceLabel and previousPrice as two separate items to a new list (the sub-List). # Append the sub-List to displayList.
. . .
# replace ellipsis with applicable code
Comments
Leave a comment