Articles ā Python ā Print Function In Python
Print Function In Python
Purpose
- Data of any data type like integer, float, string etc.
- Mathematical expressions
- Variables
Syntax
Print(data_to_be_printed)
Example
Click to Enlarge
Printing Multiple Values Using Print Function
Click to Enlarge
End Parameter In The Print Function
tuple = ("Banana","Orange","Grapes","Strawberry")
x= 0
while x < 4:
print(tuple[x], end='@')
x = x + 1
print("\n")
x= 0
while x < 4:
print(tuple[x], end='')
x = x + 1
Click to Enlarge