Skip to content
Solution Debug 6.1. Loop Control
  • Pages
    • Solution
    • The Task
    • icon picker
      Python Starter Code
    • CodeClips

Python Starter Code

Copy and paste the code below into your main.py file before you begin the task.
print('\n') # display blank line

# enter product
product = input('Enter product for this batch: ')

# enter scent
fragrance = input('Enter fragrance for this batch: ')

# enter scent
batchCode = int(input('Enter batch code number: '))

# enter scent
batchSize = int(input('Enter number of products in this batch: '))
print('\n\n') # display blank line (2)
# prints out a label for every product box
for i in range batchSize :
print('Scents of Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿')
print('Enjoy our hand-crafted ' + product)
print('Fill your home with the beautiful scent of ' + fragrance)
print('Quality Control: Batch#' + str(i) + ' - Serial#' + str(batchSize))
print('...........................................................\n')
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.