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
Printing Multiple Values Using The Print Function
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