You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
426 B

def convert(val: float,unite: str):
if unite == "g":
livre = val * 0.002205
print(livre, end=" l")
if unite == "m":
pied = val / 0.3048
print(pied, end=" p")
if unite == "c":
fahr = 32 + 1.8 * val
print(fahr, end=" f")
print()
nbConvert = int(input())
for loop in range(nbConvert):
valeur, unite = input().split()
convert(float(valeur),unite)