Control Structures - Jupyter Notebook
Control Structures - Jupyter Notebook
if a == 'F':
converted_temp = (temp-32)*5/9
print (temp, 'degree fahrenheit equal ', converted_temp, 'degree celsius')
else:
converted_temp = (9/5*temp)+32
print (temp, 'degree celsius equal ', converted_temp, 'degree fahrenheit')
if a == 'F':
converted_temp = (temp-32)*5/9
print (temp, 'degree fahrenheit equal ', converted_temp, 'degree celsius')
else:
converted_temp = (9/5*temp)+32
print (temp, 'degree celsius equal ', converted_temp, 'degree fahrenheit')
sum1 = 0
current = 1
Enter value :9
Sum : 45
if a == 'F':
converted_temp = (temp-32)*5/9
print (temp, 'degree fahrenheit equal ', converted_temp, 'degree celsius')
else:
converted_temp = (9/5*temp)+32
print (temp, 'degree celsius equal ', converted_temp, 'degree fahrenheit')
In [ ]: