Created
July 22, 2019 12:38
-
-
Save Warwolt/539cccf4ca34fc8a7439349ec369c305 to your computer and use it in GitHub Desktop.
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
import sys | |
def main(): | |
testcases_file = open("testcases.txt", "r") | |
for line in testcases_file: | |
print_non_comment_line(line) | |
def print_non_comment_line(line): | |
if (line[0] != '#'): | |
stripped_line = line.lstrip() | |
sys.stdout.write(stripped_line) | |
if __name__== "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment