input: Write a python function to convert a number from one base to another.
  assert base_conversion(10, 10, 2) == 1010
  assert base_conversion(255, 10, 16) == 'FF'
  assert base_conversion(111, 2, 10) == 7
output: def base_conversion(number, from_base, to_base):
      if isinstance(number, str):
          number = int(number, from_base)
      else:
          number = int(str(number), from_base)
          
      if to_base == 10:
          return number
      
      alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
      
      result = ""
      while number > 0:
          result = alphabet[number % to_base] + result
          number //= to_base
      
      return result