Skip to content
Solution Debug 7.4. Sweet Nothings
  • 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.
# sets up array of string
jellyBellyFlavours = ['Berry Blue, Bubble Gum, Candy Floss, Mixed Berry Smoothie, Tutti-Fruitti, Strawberry Cheesecake']

# display blank line
print('\n')
print(' Jelly Belly Flavours ')
print('=======================')
# display blank line
print('\n')
# repeats for the size of the array and prints each out element
for i in range(0, len(jellyBellyFlavours), 1) :
print(str(i+1) + ' : ' + jellyBellyFlavours[0])
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.