Checking if a non-decimal number is a decimal number


i expected the code to work but I'm not sure how to round the number back down

def is_int(x):
        return True
        return False


Oh, you are using assing operator in the if statement.

Use "==" instead of "="


maybe but it didn't solve the problem


What error does it output now? Please show us what you have now.


sorry i confused with another exercise... but i need help with something else


Best to create another discussion with your code and problem :slight_smile:


yeah i know just thought it was the same code for a moment


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.