fork download
  1. some_var = """....
  2. ...
  3. Hello Subject
  4. 12:34:56:78:90
  5. ...
  6. """
  7. lst = some_var.split("\n")
  8. cnt = len(lst)
  9. for idx, line in enumerate(lst):
  10. if "Subject" in line and idx < cnt - 1:
  11. print(lst[idx+1].strip())
Success #stdin #stdout 0s 23304KB
stdin
Standard input is empty
stdout
12:34:56:78:90