Skip to content
Solution Debug 7.1. Bracket Bamboozle
  • Pages
    • icon picker
      Solution
    • The Task
    • Python Starter Code
    • CodeClips

Solution

Solution

solution
# print a heading
print("\nAncient Roman Lottery\n")

# sets up array of numbers with 6 roman numbers
lotteryNumbers = ['III', 'IV', 'XIV', 'XXII', 'XXX', 'XLIV']
# repeats for the size of the array and prints each out element
for i in range(0, len(lotteryNumbers), 1) :
print(lotteryNumbers[i])

print('\n\n') # display blank line (2)
original
# print a heading
print("\nAncient Roman Lottery\n")

# sets up array of numbers with 6 roman numbers
lotteryNumbers = (III, IV, XIV, XXII, XXX, XLIV)
# repeats for the size of the array and prints each out element
for i in range(0, len(lotteryNumbers), 1) :
print(lotteryNumbers{i})

print('\n\n') # display blank line (2)
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.