hisoka 2 Report post Posted April 30, 2015 I have a problem words = [ "ca" , "caa"] for x in words: if len(x) >1: words.insert(0,x) ...words it gives : Syntaxerror : invalid syntax I do not know what is the problem ? normaly it should give [ "ca" , "caa" , "ca"] Share this post Link to post Share on other sites
justsomeguy 1,093 Report post Posted April 30, 2015 Do you have a reference for what "..." does in Python? Google isn't a ton of help. Share this post Link to post Share on other sites
hisoka 2 Report post Posted May 3, 2015 Now i googled but i have still no idea of the meaning of ... And what it does and its relation with my question Share this post Link to post Share on other sites
justsomeguy 1,093 Report post Posted May 4, 2015 In your code above, what exactly is the line "...words" supposed to do? Share this post Link to post Share on other sites