I
I
igoodmood2015-10-04 17:52:49
Python
igoodmood, 2015-10-04 17:52:49

How to remove the indent between the answer and the phrase (x=_1.0)?

5769dbfcff034542b2a9e3d31b57b3fd.png

print('x=',x,'y1={0:.2f}'.format(y1),'y2={0:.2f}'.format(y2))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
abcd0x00, 2015-10-04
@igoodmood

>>> x, y1, y2 = 1.0, -0.99, 0.48
>>> 
>>> print('x={} y1={:.2f} y2={:.2f}'.format(x, y1, y2))
x=1.0 y1=-0.99 y2=0.48
>>>

J
jackroll, 2015-10-04
@jackroll

print('x=',x,'y1={0:.2f}'.format(y1),'y2={0:.2f}'.format(y2), sep="")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question