How to disable the new line behavior of \n in python3.6 strings?
For example:
In: >>> a = input("Please enter a sentence: ")
Out: blah blah \n blah
In: >>> print(a)
Out: blah blah \n blah
How to disable the new line behavior of \n in python3.6 strings?
For example:
In: >>> a = input("Please enter a sentence: ")
Out: blah blah \n blah
In: >>> print(a)
Out: blah blah \n blah
As per the documentation;
print(a, end="")
a = input("Please enter a sentence: ")
k = list(str(a))
e = ''.join(k)
print(e)