fork download
  1. text = """# ---------------------------------------------------------------------------------------------------------------------
  2. # MODULE PARAMETERS
  3. # These are the variables we have to pass in to use the module specified in the terragrunt configuration above
  4. # ---------------------------------------------------------------------------------------------------------------------
  5.  
  6. Text goes here
  7. """
  8. lines = []
  9. fr = iter(text.splitlines())
  10. flag = True
  11. for line in fr:
  12. if line.startswith('# ---'):
  13. flag = not flag
  14. continue
  15. if flag:
  16. lines.append(line)
  17.  
  18. print("\n".join(lines))
Success #stdin #stdout 0.02s 9220KB
stdin
Standard input is empty
stdout
Text goes here