Skip to content

Instantly share code, notes, and snippets.

@Raj39120
Created April 30, 2020 13:41
Show Gist options
  • Save Raj39120/e53c23083c9995b32b0ecf03ebc98a1e to your computer and use it in GitHub Desktop.
Save Raj39120/e53c23083c9995b32b0ecf03ebc98a1e to your computer and use it in GitHub Desktop.
a = list(input("Enter a list of numbers here (in the format of x, y, z): "))
my_list = []
for b in a:
if float(b / 2.0) == b // 2.0:
my_list.append(b)
if float(b / 2.0) != b // 2.0:
pass
print(my_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment