Skip to content

Instantly share code, notes, and snippets.

@fatosmorina
Created April 9, 2021 03:36
Show Gist options
  • Save fatosmorina/9742a6a9054c1fb2552405a83b38e0bc to your computer and use it in GitHub Desktop.
Save fatosmorina/9742a6a9054c1fb2552405a83b38e0bc to your computer and use it in GitHub Desktop.
numbers = [2, 4, 6, 8, 1]
for number in numbers:
if number % 2 == 1:
print(number)
break
else:
print("No odd numbers")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment