hisoka Posted April 30, 2015 Share 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"] Link to comment Share on other sites More sharing options...
justsomeguy Posted April 30, 2015 Share Posted April 30, 2015 Do you have a reference for what "..." does in Python? Google isn't a ton of help. Link to comment Share on other sites More sharing options...
hisoka Posted May 3, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
justsomeguy Posted May 4, 2015 Share Posted May 4, 2015 In your code above, what exactly is the line "...words" supposed to do? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now