Gallery
Solution Debug 6.2. Counted Out
Share
Explore

icon picker
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)

name = input('Enter your name: ')

age = int(input('Enter your age: '))

print('\n\n') # display blank line (2)
print(name + ', here are ' + str(age) + ' birthday wishes for you!')

print('\n\n') # display blank line (2)
# prints out happy birthday repeated times
for i in range(age, 0 , 1) :
print("Happy Birthday to you!")
print('\n\n') # display blank line (2)
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.