Created
January 2, 2012 08:36
-
-
Save agargiulo/1549894 to your computer and use it in GitHub Desktop.
stupid note fad thing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
question 1 | |
question 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( ) question 1 | |
( ) question 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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