Snehakumari Which looping patterns offer optimal performance and clarity? Share examples used in advanced scripting tasks.