Print Method In Python

 

Code Example


The print() function prints the specified message to the screen or other standard output device. The message can be a string or any other object, the object will be converted into a string before written to the screen.


Example 1:

>>> print("I Love Python")
I Love Python

Example 2:

>>> print(1,2,3,4,5, sep='*')
1*2*3*4*5


Example 3:

>>> print(1,2,3,4,5, sep='#', end='@')
1#2#3#4#5@








Get Help

Comments

Popular posts from this blog

How To Create .ENV File in Python

Create a Large file for Test Data Processing using Python

How to solve the Liner Equation using Python