two inputs in one function ?
Iâm trying to create a code for conversion of Celsius (C) to Fahrenheit (F) and vice verse, also to ask the user if they want the conversion from C to F or from F to C. This is the code i wrote: __________________________________________ def C_to_F(x): return x, "celsius â", x * (9/5) + 32, "fahrenheit" def F_to_C(x): return x, "fahrenheit â", (x - 32) / (9/5), "celsius" def conversion(n): y = int(input("To convert C to F press 1. To Convert F to C press 2 ")) if y == 1: return C_to_F(n) elif y == 2: return F_to_C(n) else: return None print(conversion(43)) _____________________________________ So far, it works, but i have to put in the temperature value in the print function, in this case print(conversion(43)). What i want is the user to put in the value, but i cant find a way of putting one more input command in the code without getting an error. Can you give me some advice please. How can i put two inputs in a funcion?