JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
Solution Debug 6.2. Counted Out
Share
Explore
Gallery
Solution Debug 6.2. Counted Out
Solution Debug 6.2. Counted Out
Solution
The Task
Python Starter Code
CodeClips
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)
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.