making input an integer or float python code example
Example: input float python
# python code to take float input
val = float(input("Enter any number: "))
print("value of val2: ", val)
print("type of val2: ", type(val))
# python code to take float input
val = float(input("Enter any number: "))
print("value of val2: ", val)
print("type of val2: ", type(val))