JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
Solution Competition Registration
Share
Explore
Gallery
Solution Competition Registration
Solution Competition Registration
Solution
The Task
Pseudocode
Python Starter Code
CodeClips
Solution
Solution
solution
# Competition Registration
# ========================
import
time
# copy and paste your pseudocode to guide your java coding
# blank line
print
(
'\n'
)
# gets and stores number of competition entries from user
entries
=
int
(
input
(
'Please enter the number of entries: '
)
)
print
(
'\n'
)
for
i
in
range
(
0
,
entries
,
1
)
:
# gets and stores full name from user
fullName
=
input
(
'Enter full name: '
)
# gets and stores year group from user
yearGroup
=
int
(
input
(
'Year Group: '
)
)
# gets and stores link to entry from user
entryLink
=
input
(
'Link to entry: '
)
# prints blank line
print
(
'\n'
)
# end loop
# prints blank line
print
(
'\n'
)
# prints submitting entries message
print
(
'Submitting entries...'
)
#pauses program for 4 seconds
time
.
sleep
(
4
)
# clears the screen
print
(
'\033[H\033[2J'
)
# prints blank line
print
(
'\n'
)
# prints confirmation of number of pupil entries
print
(
'dressCode Competition Confirmation'
)
print
(
'=================================='
)
print
(
'\n'
)
print
(
'We have recieved '
+
str
(
entries
)
+
' entries.'
)
print
(
'Thank you.'
)
original
# Competition Registration
# ========================
import
time
# copy and paste your pseudocode to guide your python coding
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.