Not getting output in python script

i wrote

a = 6.4
type(a)

and i’m not getting any output
i’m running it on main.py and my entrypoint is also main.py
this issue is specifically happening for type(variable_name)

1 Like

I don’t think that does anything in Python. Have you tried print(a)?

it’s only in the interactive python shell where statement results are printed out automatically.
When running a file, you have to print

print(type(a))
# or to get just `int`
print(type(a).__name__)
6 Likes