If I have such a simple code
varry = 1
print(type(varry))
it gives me - class 'int'
But if I have this:
varry = input()
print(type(varry))
And I type 1, it gives me class 'str'
Tell me please - why is it so and how should I write a program so that it defines a variable I enter correctly as int, str or float?
input()function will return whatever is entered as a string.