Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ai-student-workspace
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anton Paul Wilhelm Segeler
ai-student-workspace
Commits
9a4a2fcc
Commit
9a4a2fcc
authored
2 years ago
by
Ingmar Schubert
Browse files
Options
Downloads
Patches
Plain Diff
minor
parent
0b33d987
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
00/solution_00.py
+3
-3
3 additions, 3 deletions
00/solution_00.py
with
3 additions
and
3 deletions
00/solution_00.py
+
3
−
3
View file @
9a4a2fcc
from
module_1
import
is_positive
,
is_even
def
is_even_and_positive
(
y
):
def
is_even_and_positive
(
x
):
"""
Please modify the body of this function so that it returns
- True if `
y
` is an even and positive integer
- True if `
x
` is an even and positive integer
- False in all other cases
"""
# This function body should be edited such that
...
...
@@ -12,4 +12,4 @@ def is_even_and_positive(y):
# one possibility would be to use the functions
# provided by module_1
# return is_even(
y
) and is_positive(
y
)
# return is_even(
x
) and is_positive(
x
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment