Skip to content

Instantly share code, notes, and snippets.

@ChaitanyaBaweja
Last active November 30, 2020 06:43
Show Gist options
  • Save ChaitanyaBaweja/cca222bb74c0bd12d3fcec85c4d8ce00 to your computer and use it in GitHub Desktop.
Save ChaitanyaBaweja/cca222bb74c0bd12d3fcec85c4d8ce00 to your computer and use it in GitHub Desktop.

To check which elements of a list are even, do the following:

for number_i in given_list:
    if number_i%2 ==0:
        print(number_i," is even")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment