JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
Solution Debug 7.4. Sweet Nothings
Share
Explore
Gallery
Solution Debug 7.4. Sweet Nothings
Solution Debug 7.4. Sweet Nothings
Solution
The Task
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
]
)
Gallery
Share
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.