Skip to content

Instantly share code, notes, and snippets.

@Wingless-Archangel
Created November 5, 2016 07:21
Show Gist options
  • Save Wingless-Archangel/3ca01f7f1637b76b8b829fa786504305 to your computer and use it in GitHub Desktop.
Save Wingless-Archangel/3ca01f7f1637b76b8b829fa786504305 to your computer and use it in GitHub Desktop.
get the result of the element that could be divided by
#!/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