what is an input and output

  • A function with an input and output reciepvs data or information from ecternal sources such as the keyboard and then then the output displays or presents the data onto the screen tpically using the print() function
#ask user for their original temperature in farenheit 
#use  'int' to store a numerical value
f=int(input('what is your temperatire in farenheit? '))
#convert farnheit to celcius using mathematical operation
#equation is Temperature(°C) = (Temperature in°F) - 32) × 5/9
c=(f-32)*(5/9)
#print output to user
print('this is your temperature in celcius ',c)

#celcius to farenheit conversion
m=int(input('what is your temperature in celcius? '))
n=(m*(9/5)+32)
print('this is your temperature in farenheit ',n)
what is your temperatire in farenheit?  89


this is your temperature in celcius  31.666666666666668


what is your temperature in celcius?  38


this is your temperature in farenheit  100.4