Why Do We Check Datatypes Without Using Quotes?


When we ask for the type of the argument in " type(9) ", isn’t the output (which would be “int” in this case) a string? Then why does the if else statement look like

if (type(arg)==int):

instead of

if (type(arg)==“int”): ?

How can I check if the type is int or float?

because int is the data type build into python, "int" is just a string.