temp =(input('Enter temperature to convert '))
if temp.endswith("C"):
temp=temp[:-1]
temp_converted = (float(temp)-32)*(5/9)
print ('The converted temperature is', temp_converted, 'F')
else
temp= temp[:-1]
tempnew=float(temp * (9/5) + 32)
print ('The converted tempature is', temp,'F')
Я продолжаю получать синтаксическую ошибку в инструкции else.Я продолжаю получать синтаксическую ошибку в python
Вы не можете вставить другие операторы между ними, если-то еще, плюс отсутствует ** ' : '** после' else'. –