def getOutwardPart(postcode):
	"""Returns the Outward part of the postcode
	
	Description
	-----------

	Extract the outward part of from the postcode
	It will NOT neccesory gives the correct outward code ! 
	Infact it only extracts between two and four characters long string
	The outward code is the part of the postcode before the single space in the middle.
	
	Examples
	--------
	Examples of outward codes include 
	"L1", "W1A", "RH1", "RH10" or "SE1P". 
	A few outward codes are non-geographic, not divulging where mail is to be sent.

	Attributes
	----------
	postcode : string
		The postcode

	Returns
	-------
	String
		Three character long string as Inward part

	Raises
	------
	Exception: Raises exception if the given postcode is of invalid length; length less than 5 
	"""
	
	# Figuring out the correct length of Outward code
	# as inward code is always of length 3    
	length = len(postcode)
	if length < 5:
		raise Exception('Invalid outward part')    

	return postcode[0:length-3]