
def get_check_digit_from_checkable_int (number):
    return (9 * ((number // 10) + rotate_digit(number % 10))) % 10

def rotate_digit (digit):
    if digit > 4:
        return (digit * 2) - 9

    else:
        return digit * 2

def get_check_digit (number = None):
    if number:
        return get_check_digit_from_checkable_int(int(number))

    else:
        return None


def rotate_digit (digit):
    if digit > 4:
        return (digit * 2) - 9

    else:
        return digit * 2

def get_check_digit_from_checkable_int (number):
    return (9 * ((number // 10) + rotate_digit(number % 10))) % 10

def get_check_digit (number = None):
    if number:
        return get_check_digit_from_checkable_int(int(number))

    else:
        return None

Reorder methods to make sense
Reorder methods to make sense

- 
- def get_check_digit_from_checkable_int (number):
-     return (9 * ((number // 10) + rotate_digit(number % 10))) % 10
  
  def rotate_digit (digit):
      if digit > 4:
          return (digit * 2) - 9
  
      else:
          return digit * 2
  
+ def get_check_digit_from_checkable_int (number):
+     return (9 * ((number // 10) + rotate_digit(number % 10))) % 10
+ 
  def get_check_digit (number = None):
      if number:
          return get_check_digit_from_checkable_int(int(number))
  
      else:
          return None
  
Reorder methods to make sense
## Code Before:

def get_check_digit_from_checkable_int (number):
    return (9 * ((number // 10) + rotate_digit(number % 10))) % 10

def rotate_digit (digit):
    if digit > 4:
        return (digit * 2) - 9

    else:
        return digit * 2

def get_check_digit (number = None):
    if number:
        return get_check_digit_from_checkable_int(int(number))

    else:
        return None

## Instruction:
Reorder methods to make sense
## Code After:

def rotate_digit (digit):
    if digit > 4:
        return (digit * 2) - 9

    else:
        return digit * 2

def get_check_digit_from_checkable_int (number):
    return (9 * ((number // 10) + rotate_digit(number % 10))) % 10

def get_check_digit (number = None):
    if number:
        return get_check_digit_from_checkable_int(int(number))

    else:
        return None
