Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Siu, Pui Chung
codewar solutions
Commits
5da5572e
Commit
5da5572e
authored
Jul 21, 2021
by
Siu, Pui Chung
Browse files
Add new file
parent
6bf872ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
find_the_party_outlier.py
0 → 100644
View file @
5da5572e
def
find_outlier
(
integers
):
list
=
[
int
%
2
for
int
in
integers
]
if
list
.
count
(
0
)
==
1
:
return
integers
[
list
.
index
(
0
)]
else
:
return
integers
[
list
.
index
(
1
)]
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