temp = input("Please enter the tempreture. ")
temp2 = temp[0,1]
if temp[2] or temp[3] == "C" or "c":
new = (temp2*9/5)+32
print(temp + " converted into Farenheit is " + new + ".")
elif temp[2] or temp[3] == "F" or "f":
print(" ")
else:
print("You have done something wrong?")
This is homework and I wanted to use the input to convert the temperature. The input would be 77C or 77F. Is there any way that I can set it as 77 as an integer so I can use it in calculations?