Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hackinscience
hkis-exercises
Commits
929e3d40
Verified
Commit
929e3d40
authored
Apr 14, 2022
by
Julien Palard
Browse files
Tell them when they forgot day exists.
parent
be352022
Pipeline
#501713
passed with stages
in 2 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
exercises/number-of-seconds-in-a-year/check.py
View file @
929e3d40
...
...
@@ -56,6 +56,11 @@ print(60 * 60)
f
"You printed
{
60
*
60
*
24
}
(60 × 60 × 24), this is the number of "
"seconds in a day. I need the number of seconds in a year of **365** days."
)
if
output_int
==
60
*
60
*
365
:
checker
.
fail
(
f
"You printed
{
60
*
60
*
365
}
(60 × 60 × 365), this is the number of "
"**hours** in a year. I need the number of **seconds** in a year."
)
if
output_line
.
startswith
(
" "
):
checker
.
fail
(
"Why do your output starts with a space?"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment