Posts by Vintraled • 11 points
1 post
-
0
votes5
answers23915
viewsA: How do I know if the variable is an integer in Python?
I used this formula here which is easier and gives the exact value. No need to worry about the code consider the (type)! as: x1 = float(input('Valor = ')) print(x1, type(x1)) def valor(v): n =…