Skip to content

Instantly share code, notes, and snippets.

@Pierian-Data
Created March 1, 2018 17:19
Show Gist options
  • Select an option

  • Save Pierian-Data/dd645bb5881653b73015f5956e613243 to your computer and use it in GitHub Desktop.

Select an option

Save Pierian-Data/dd645bb5881653b73015f5956e613243 to your computer and use it in GitHub Desktop.
def myfunc(*args):
out = []
for num in args:
if num%2==0:
out.append(num)
return out
@Akashmahaur
Copy link

Akashmahaur commented Feb 26, 2026

def myfunc(*args):
even_number = []
for num in args:
if num % 2 ==0:
even_number.append(num)
return even_number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment