Created
July 24, 2022 15:30
-
-
Save modos/9b8fc13f884a2199c755817dad7679e0 to your computer and use it in GitHub Desktop.
مجزا
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def separator(A): | |
evenlist = [] | |
oddlist = [] | |
for i in A: | |
if (i % 2 == 0): | |
evenlist.append(i) | |
else: | |
oddlist.append(i) | |
return (evenlist, oddlist) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment