how to print without space in python 3 1

how to print without space in python 3

>>> print("a","b","c")
a b c
>>> print("a","b","c",sep="")
abc

Here is what the above code is Doing:
1. The print() function takes a string as an argument.
2. The print() function prints the string to the screen.
3. The print() function returns the string.
4. The print() function takes an optional argument, sep, which is the string to print between the strings. The default value for sep is a space.
5. The print() function takes an optional argument, end, which is the string to print at the end. The default value for end is a newline.
6. The print() function prints the string to the screen and returns the string.

Similar Posts