Skip to content

Instantly share code, notes, and snippets.

@modos
Created July 24, 2022 15:30
Show Gist options
  • Save modos/9b8fc13f884a2199c755817dad7679e0 to your computer and use it in GitHub Desktop.
Save modos/9b8fc13f884a2199c755817dad7679e0 to your computer and use it in GitHub Desktop.
مجزا
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