end keyword print python
# This Python program must be run with
# Python 3 as it won't work with 2.7.
# by default, each string in print() will end in a new line
# you can change this as below
# ends the output with a <space>
print("Welcome to" , end = ' ')
print("GeeksforGeeks", end = ' ')
#Output:
Welcome to GeeksforGeeks
# without the "end" keyword:
print("Welcome to")
print("GeeksforGeeks")
#Output:
Welcome to
GeeksforGeeks