Not a python coder here. Can someone please explain (or even better link to something that explains) the bit in red.
Code:MyVar = line.split()[3][4:-1]
| SitePoint Sponsor |
Not a python coder here. Can someone please explain (or even better link to something that explains) the bit in red.
Code:MyVar = line.split()[3][4:-1]
Location: Alicante (Spain)... Hot and Sunny...
Texas Holdem Poker Probability Calculator | DNS test
Avatars | English Spanish Translation | CAPTCHA with audio
Email | PHP scripts | Cruft free domain names | MD5 Cracker

It is the slice operation (or substring) of a String.
The red bit will return the 5th char to the to 2nd last char. (as everything is indexed from 0).
You can read through http://docs.python.org/2/tutorial/introduction.html
Bookmarks