I just can not figure it out how to easily do it in python:
myArray = ["this ","is ","a ","test.","this ","is ","another ","test."]
now I want the output to be
print(myArray[0:3]) -> "this is a test"print(myArray[4:7]) -> "this is another test"
Is there a feature in python that allows this without iterating over the whole array within a for word in myArray ...
What I get is an index in a loop which only tells me up to which word I should "print" it.
I prefer a python "exclusive" variant, which is short and simple, best case a one liner and it should need as less memory as possible (fast even for thousands of attempts)

" ".join(myArray[4:7])