Skip to content
Solution Debug 6.4. In the Loop
  • 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\n') # display blank line (2)

# ask user how many passes are needed
guests = int(input('Enter number of guest passes needed: '))

print('\n\n') # display blank line (2)
# get guest names and display a pass for each one
for i in range(0,guests, 1) :

name = input('Enter next guest name: ')
print('\n') # display blank line (2)




print('\n\n') # display blank line (2)


print('==============================')
print(' Coding Club Pass');
print('\n')
print('Guest: ' + name)
print('==============================')
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.