Skip to content

Instantly share code, notes, and snippets.

@agargiulo
Created January 2, 2012 08:36
Show Gist options
  • Save agargiulo/1549894 to your computer and use it in GitHub Desktop.
Save agargiulo/1549894 to your computer and use it in GitHub Desktop.
stupid note fad thing
question 1
question 2
( ) question 1
( ) question 2
#!/bin/env python3
fadQs = []
fadAs = []
with open("fad.in") as fadInput:
for line in fadInput:
fadQs.append(line)
for q in fadQs:
fadAs.append(input (q + " (y/N) "))
with open("fad.out","wt") as fadOutput:
for i in range(len(fadQs)):
if fadAs[i] == "y":
fadOutput.write("(x) ")
else:
fadOutput.write("( ) ")
fadOutput.write(fadQs[i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment