
from __future__ import unicode_literals


__version__ = '0.1.0'


def formater(postcode):
    '''
    Format a UK Post Code to the official form. Expects a valid postcode.
    '''
    postcode = postcode.upper().replace(' ', '').strip()
    inward = postcode[-3:]
    outward = postcode[:-3]
    return '%s %s' % (outward, inward)


from __future__ import unicode_literals


__version__ = '0.1.0'


def formater(postcode):
    '''
    Format a UK Post Code to the official form. Expects a valid postcode.
    '''
    postcode = postcode.upper().replace(' ', '').strip()
    inward = postcode[-3:]
    outward = postcode[:-3]
    return '%s %s' % (outward, inward)


def validate(postcode):
    '''
    Returns True if the postcode is valid. False otherwise.
    '''
    raise NotImplementedError()

Prepare to code the validator
Prepare to code the validator

  
  from __future__ import unicode_literals
  
  
  __version__ = '0.1.0'
  
  
  def formater(postcode):
      '''
      Format a UK Post Code to the official form. Expects a valid postcode.
      '''
      postcode = postcode.upper().replace(' ', '').strip()
      inward = postcode[-3:]
      outward = postcode[:-3]
      return '%s %s' % (outward, inward)
  
+ 
+ def validate(postcode):
+     '''
+     Returns True if the postcode is valid. False otherwise.
+     '''
+     raise NotImplementedError()
+ 
Prepare to code the validator
## Code Before:

from __future__ import unicode_literals


__version__ = '0.1.0'


def formater(postcode):
    '''
    Format a UK Post Code to the official form. Expects a valid postcode.
    '''
    postcode = postcode.upper().replace(' ', '').strip()
    inward = postcode[-3:]
    outward = postcode[:-3]
    return '%s %s' % (outward, inward)

## Instruction:
Prepare to code the validator
## Code After:

from __future__ import unicode_literals


__version__ = '0.1.0'


def formater(postcode):
    '''
    Format a UK Post Code to the official form. Expects a valid postcode.
    '''
    postcode = postcode.upper().replace(' ', '').strip()
    inward = postcode[-3:]
    outward = postcode[:-3]
    return '%s %s' % (outward, inward)


def validate(postcode):
    '''
    Returns True if the postcode is valid. False otherwise.
    '''
    raise NotImplementedError()
