Your program returns the Common Factors of two numbers. A list actually..
enter the number: 135 enter the number: 45 [1, 3, 5, 9, 15, 45] # the common factors enter the number: 19 enter the number: 0 []
0 is expected.
0
it should return a number. Use print(f"{max(cf)}")
print(f"{max(cf)}")
Thanks for the suggestion.🙂
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Your program returns the Common Factors of two numbers. A list actually..
0
is expected.it should return a number. Use
print(f"{max(cf)}")
Thanks for the suggestion.🙂