python-CSD-kursu/python-temel/myprint.py
2023-05-24 09:50:55 +03:00

13 lines
266 B
Python

def myprint(*Objects, sep = ' ', end = '\n'):
i = 0
while i < len(Objects):
if i != 0:
print(sep, end='')
print(Objects[i], end='')
i += 1
print(end = end)
myprint(10, 20)
myprint(30, 40)
myprint(10, 20, 30, sep=',')