Created
April 30, 2020 13:41
-
-
Save Raj39120/e53c23083c9995b32b0ecf03ebc98a1e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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