def convert_to_octal(file_name):
 return oct(os.stat(file_name)[stat.ST_MODE])[(-3):]

def convert_to_octal ( file_name ) : return oct ( os . stat ( file_name ) [ stat . ST_MODE ] ) [ ( - 3 ) : ]
using os .