We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
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