I wrote a program of two lines in python. At first I tested it in the python shell. Here it is:
>>>state=True
>>>type(state)
<class 'bool'>
The output was as I expected in the shell. And then I wrote these instructions in a file named main.py.
#---------------main.py----------------#
state=True
type(state)
Then I executed this program using linux terminal as root user. The output was nothing
[manjaro ~]# python main.py
[manjaro ~]#
I expected that the output would be as it was in the shell. As a beginner In python I don't know why there was no output. Please help me to understand why there was no output.
print()function in a Python script to display output. Advise you read the Python Tutorial to learn the basics of the language.