How do I print two integer numbers in different lines using the same one print function ?
you could use new line character?
yes but the numbers are printed like this
i was wondering if there is another way
But that is what you wanted, no?
Difficult to say without seeing any code at all, or an idea of what you want
>>> print(1, '\n', 2) 1 2
it doesnt printing the second number exactly under the first one
, to print multiple arguments will introduce spaces. You could use
f-string if you have at least python 3.6
The print function has a keyword argument “sep”. This is what will be put between the values passed into the print function.