Update index.md , adding for loop examples (#24388)
Update index.md , adding for loop examples (#24388)

* Update index.md

* Added code formatting to changes

FreeCodeCamp/FreeCodeCamp,raisedadead/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,jonathanihm/freeCodeCamp,BhaveshSGupta/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,raisedadead/FreeCodeCamp,jonathanihm/freeCodeCamp,FreeCodeCamp/FreeCodeCamp