Last active
February 12, 2021 06:25
-
-
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'
This file contains 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
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") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it works, thanks