WHAT COMMAND IS USED TO OUTPUT TEXT FROM BITH PYTHON SHELL AND WITHIN A PYTHON MODULE?

There is a command that can be used to output text from both the python shell and within a python module. print() is the command you are looking for.
The print() function, formally print statement in Python 2.0, can be used to output text from both the python shell and within a python module.
Syntax:
print(value1, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
Subscribe
Login
Please login to comment
0 Discussion