List thing

Hey, I’m trying to do something with a retrieving something from a list, but I’m not sure how to do it.

What I’m trying to do is to grab an item from a specified range in a list to print, but in the same line. So something like this:

for i in 5:
print cool_list[0:5[i]]

It would find the range in the list, then select the element specified by the i.

Keep in mind that this is coded in Python 2.7