I am having trouble understanding how one of the for loops works in Learn Python the Hard Way ex.41. http://learnpythonthehardway.org/book/ex41.html Below is the code from t
snippet.count("@@@") returns the number of times "@@@" appears in snippet.
snippet.count("@@@")
"@@@"
snippet
If "@@@" appears 6 times, then the for-loop iterates from 0 to 6.