In python it is possible to print various types of variables using print
. Here's an example:
print(3.4, "hello", 45);
Or individually.
print(3.4);
print("hello");
print(45);
How can you identify whether the value being printed is float
, string
or int
?