#python #practice #exercises
unit = input("Is this temperature in Celsius or Fahrenheit (C/F): ")
temp = float(input("Enter the temperature: "))
if unit == "C":
temp = round((9 * temp) / 5 + 32, 1)
print(f"The temperature in Fahrenheit is: {temp}°F")
elif unit == "F":
temp = round((temp - 32) * 5 / 9, 1)
print(f"The temperature in Celsius is: {temp}°C")
else:
print(f"{unit} is an invalid unit of measurement")
En esta página del sitio puede ver el video en línea Python temperature conversion program 🌡️ de Duración hora minuto segunda en buena calidad , que subió el usuario Bro Code 13 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 59,009 veces y le gustó 1.1 mil a los espectadores. Disfruta viendo!