Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 17 Online
OpenStudy (anonymous):

How would I make a boolean statement to check if a number is true or false to be an integer without a remainder. "i.e.. if x has a remainder then it is false, if x does not have a remainder it is true". I hope this is a probable statement to make.

OpenStudy (anonymous):

if x%y == 0: return True else: return False

OpenStudy (anonymous):

The answer above is correct, but it´s missing indentation. if x % y == 0: return True else: return False

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!