0

Why am I not able to write two times 'print' in the same line

10th Oct 2016, 8:16 PM
De Nomano Amedi
2 ответов
+ 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 '+')
11th Oct 2016, 4:42 AM
Abhi Jith
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.
10th Oct 2016, 9:49 PM
Christopher Nguyen
Christopher Nguyen - avatar