I'm new to Python, and I'm wondering how to print multiple values without having the extra space added in between. I want the output ab rather than a b without having to call print twice:
print("a", end="")
print("b")
Also, I have the following code:
a = 42
b = 84
and I want to print their values as a = 42, b = 84, yet if I do
print("a = ", a, ", ", b = ", b)
extra spaces are added (it outputs a = 42 , b = 84)
Whereas the Java style,
print("a = " + a + ", b = " + b)
raises a TypeError.