help please 04-15-2013, 06:03 PM
#1
In the contest " Reversing Words and Quick Loop "organized by sir,@Psycho_Coder, i saw these codes posted by @H4R0015K
its working perfectly ..
but sorry to say i couldn't understand how this ' split()[::-1] ' works ..
could anyone please explain this to me ..
a lot of thanks in advance
miling:
Code:
data = raw_input("Enter the string : ").split()[::-1]
print "Modified String : ",
for i in data:
print i,its working perfectly ..
but sorry to say i couldn't understand how this ' split()[::-1] ' works ..
could anyone please explain this to me ..
a lot of thanks in advance
miling:


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)


![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)