temperatures.py

Created by elodie-gamot

Created on June 28, 2022

233 Bytes

Pour l’activité correspondante.


from math import *

def C_en_K(x):
  y = x+273.15
  return y

def K_en_C(y):
  return y-273.15

def C_en_F(x):
  return (9/5)*x+32

def K_en_F(t) :
  degres = K_en_C(t)
  fahr = C_en_F(degres)
  return round(fahr)