Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Created December 14, 2020 03:31
Show Gist options
  • Save Abhayparashar31/497fd64fbb982ed05d6e12da172ab3cf to your computer and use it in GitHub Desktop.
Save Abhayparashar31/497fd64fbb982ed05d6e12da172ab3cf to your computer and use it in GitHub Desktop.
def check(numbers):
for i in numbers:
if i == 0:
print("0 is present")
else:
print("0 is not present")
check([1,2,3,4]) ### 0 not present
check([0,1,2]) ## 0 present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment