#!/usr/bin/python3

def Calcius_to_Farenheit(c):
      f=(9/5)*c + 32
      print(f)


def Farenheit_to_Calcius(f):
     c=(f-32)*(5/9)
     print(c)


def main():

          print("Type 1 to convert Celcius to Farenheit")
          print("Type 2 to convert Farenheit to Calcius")

         choice = int(input("Type 1 or 2:"))
         while choice != 1 and choice !=2:
              choice = int(input("Type 1 or 2:"))


         if choice == 1:
              celcius = int(input("Give Celcius:"))
              Celcius_to_Farenheit(celcius)
          else:
              farenheit = int(input("Give Farenheit:"))
              Farenheit_to_Celcius(farenheit)

if __name__=="__main__":
           main()           
         
       
