input: Write a python function to convert a given integer to its binary equivalent using the format() method.
  assert convert_to_binary(10) == '1010'
  assert convert_to_binary(255) == '11111111'
  assert convert_to_binary(0) == '0'
output: def convert_to_binary(n):
      return format(n, 'b')