Hi , for excluding everything, but integers i have found this code
. My Problem is, if i write
, 0 and 1 will not remain in my code. Is there any possibility, just to remove True and False, because i want to avoid that python gives an answer for True/n or False/n.
1 |
isinstance (n, int ) |
1 |
isinstance (n, int ) = = True and n! = True or False |