User:Kiken/Construction Site/Implementations/Operation
Jump to navigation
Jump to search
import os # takes in a file name as input def operation(filename): data = '' with open(filename) as f: stat = os.stat(filename) inode = stat.st_ino for char in inode: if int(char) % 2 == 0: data += 0 else: data += 1