Skip to content

Instantly share code, notes, and snippets.

@Ishtiaq11
Last active February 12, 2021 06:25
Show Gist options
  • Save Ishtiaq11/94266375a035cf64f37431c86feb5648 to your computer and use it in GitHub Desktop.
Save Ishtiaq11/94266375a035cf64f37431c86feb5648 to your computer and use it in GitHub Desktop.
print those number which r divided by 5 and if not found then print 'Not found'
nums = [9, 10, 11, 20, 25]
found = False
for num in nums:
if num % 5 == 0:
found = True
print(num)
if not found:
print("Not Found")
@mazibinfo
Copy link

it works, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment