0
Why am I not able to write two times 'print' in the same line
2 Answers
+ 1
try print('hello world', end=' ') for not making a new line, but creating a space instead.
print('Hello', end='') for not making any white spaces.('' is not double quotes, but '+')
0
So what i think you are saying is why can't you have two print statements in the same line, right? Think of it like this, python reads code like a list. A to do list for example, every new line has a number. It wouldn't make sense to put two different numbers on the same line. If you wanted to do that, you could combine the two lines instead. Basically only one print is needed and there are ways to get around special indentations and what not.