Python sep end parameter

by Atakan

In the print function, the purpose of the sep is to separate the values ​​in the parameters with a certain format.

print(1,2,3,4,5,6,sep="*")  #1*2*3*4*5*6
print(1,2,3,4,5,6,sep="/")  #1/2/3/4/5/6

the end is for the information you want to put at the end of the message printed by print

print(1,2,3,4,5,6,end=".")  #1 2 3 4 5 6.

You may also like

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. OK Read More