Skip to content

Instantly share code, notes, and snippets.

@Warwolt
Created July 22, 2019 12:38
Show Gist options
  • Save Warwolt/539cccf4ca34fc8a7439349ec369c305 to your computer and use it in GitHub Desktop.
Save Warwolt/539cccf4ca34fc8a7439349ec369c305 to your computer and use it in GitHub Desktop.
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