Re: I'm a noob learning python... need help!
I can't give a good answer with such a sort description, but
If you're working with strins, you can try somenthing with the function "find".
Code:
>>> 'asdf'.find('a')
0
>>> 'asdf'.find('f')
3
>>> 'asdf'.find('x')
-1
If you're using the function that let you execute a command, just add
the grep in there 'ping www.google.com | grep "1 received"'
How strange it is, that a fool or a knave, with riches, should be treated with more respect by the world, than a good man, or a wise man in poverty!
Bookmarks