Gallery
Solution Debug 6.2. Counted Out
Share
Explore
Solution Debug 6.2. Counted Out

icon picker
Solution

Solution

solution
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(0, age , 1) :
print("Happy Birthday to you!")
print('\n\n') # display blank line (2)
original
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.