jak uzyskać tylko liczbę całkowitą używając warunkowego warunku python

print 'enter a number'
s = raw_input()
s = float(s)
q = int(s)
if s == q:
    print 'it is an integer'
else:
    print 'it is not an integer'

Gdy ktoś wejdzie w postać, chciałbym również wyświetlić komunikat „To nie jest liczba całkowita”. Jak mogę to zrobić?

questionAnswers(3)

yourAnswerToTheQuestion