I'm doing a project, but it is too hard to explain the project here, so I'm giving a simpler example here. Like I tell python :
n = 1999.0
but python don't know that n is an integer. So how do I tell python "n is an integer"?
Note: I can't use the int() method. Let me give you another example:
>>> # A code to calculate the sum of all integers below 100 that can be divided by 7.
>>> n = 0
>>> for i in range(1,101):
if i / 7 == int(): # if it is a integer after being divided by 7
n += i
>>> print(n)
0
I'm asking how to tell python that although this number is in float form, but it is an integer, not other ways to solve this question, so please don't misunderstand this question. Thanks for your help. :)