Exercise: Extract range from string II

Fill in the gaps inside the square brackets to extract the word "Code" from the string.
text = "Code for fun!"
sub_str = text[:]
print(sub_str)
Python
Setting up Python environment...
Output