Home > Enterprise >  python type() without ouput in pycharm
python type() without ouput in pycharm

Time:07-17

Python: 3.10.4 Pycharm: 2022.1 CE

I have this simple code with Python shell command:

a = 1
type(a)
<class 'int'> <-- the result

But when I execute this code with Pycharm, I receive this output:

Process finished with exit code 0

Why I don't have the output of "type()"?

CodePudding user response:

just wrap type(a) with print function,

print(type(a))
  • Related