Situatie
By default python’s print() function ends with a newline.
Python’s print() function comes with a parameter called ‘end’.
You can end a print statement with any character/string using this parameter.
Solutie
Pasi de urmat
print(“A” , end = ‘ ‘)
print(“Test”, end = ‘ ‘)
Output:
A Test
print(“email” , end = ‘@’)
print(“domain”)
Output:
email@domain
Leave A Comment?