Issue
I would like to determine if a numeric value in Python is a whole number. For example, given:
y = x / 3
I want to distinguish between values of x
which are evenly divisible by 3 those which are not.
Solution
if x % 3 == 0:
print 'x is divisible by 3'
Answered By - interjay
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.