def get_file_extension(fileName):
 return os.path.splitext(fileName.lower())[(-1)][1:]

def get_file_extension ( fileName ) : return os . path . splitext ( fileName . lower ( ) ) [ ( - 1 ) ] [ 1 : ]
get the file extension in the form of: py .