lines = ("line 1
")
lines.rstrip("
")
def func(value):
return ''.join(value.splitlines())
# add end parameter to avoid new line
print("Hello World ", end="")
print("Welcome to Guru99 Tutorials")
# output :
# Hello World Welcome to Guru99 Tutorials