I guys, im a noob on the programming world and im putting my best to learn Python.
Im stuck with this problem right now:
"Make an algorithm that verifies if a certain value is an integer."
Now the problem is that the INPUT function returns the type in string. If I cast the variable to FLOAT it stops me from reading the integer numbers.
What should i do?
val1 = float(input("enter value")
if type (val1)== int:
print("value is integer")
else:
print("value is NOT integer")