2021年1月17日星期日

Taking space out of the output

air_temperature = float(input())

air_temperature = '{x:.1f}'.format(x=36.4158102)

print(air_temperature,'C')

The output of this code is 36.4 C

how do i make this to 36.4C

Thankyou

https://stackoverflow.com/questions/65768685/taking-space-out-of-the-output January 18, 2021 at 12:04PM

没有评论:

发表评论