Created
November 5, 2016 07:21
-
-
Save Wingless-Archangel/3ca01f7f1637b76b8b829fa786504305 to your computer and use it in GitHub Desktop.
get the result of the element that could be divided by
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
#!/usr/bin/python3 | |
def main(): | |
ref = input("Please enter the divisor : ") | |
print([ans for ans in range(2,10) if ans % ref == 0]) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment