I have string value:
    str1 = """
          first line
          second line
          abc
          def
          xyz
          123
          lastline"""
How to skip first two lines and last line and print remaining lines.
Code: I tried and works for to skip first two lines
for index, line in enumerate(str1.split("\n")):
    if index <= 1:
        continue
    print line
Output getting from above code:
          abc
          def
          xyz
          123
          lastline
Expected output:
          abc
          def
          xyz
          123
 
    