ladyluger ladyluger
  • 17-05-2021
  • Computers and Technology
contestada

Print air_temperature with 1 decimal point followed by C. Sample output with input: 36.4158102 36.4C (python)

Respuesta :

phenom786
phenom786 phenom786
  • 17-05-2021

Answer:

hope this helps

Explanation:

#Read the value from keyboard and parse to float

#assign the value to air_temperature

air_temperature=float(input())

#Print the air_temperature with one decimal place to right with C

print('%.1fC'%air_temperature)

#where f is a format specifier .1 is number of decimal places to display on right side

#C is the character to print after the decimal value

Answer Link

Otras preguntas

PLEASE HELP !!!!Determine whether the given function is a polynomial function. k(x) = –3x6 – 0.7x + x3
What is the area, in square meters, of a right triangle with sides of length 8 meters, 15 meters, and 17 meters? A. 40 B. 60 C. 68 D.120 E. 127 1/2
What is the vertex of the function in #5
Help for the second part.
what should you do if you are struggling with depression ????
3 book burning facts with cited sources
God the Son said, "Because I die, ye shall die also" (John 14:19). True False
Nick and his cousin Sara have the same birthday, but Nick is four years older than Sara. Let the variable X relresent Nick's age and Y represent Sara's age. Ske
which expressions are equivalent to 2(4f+2g)
How to divide a multiple