In a nested fore loop, the outer fore loop is basically reads for j in range of one to the length of your list. And then right inside that fore loop, you're creating a basically variable that's the jath element of yourList. So all you're doing is skipping the very first element of your List. But the way you're doing this is generating explicit indexes based on the range function and the length function. It just seemed like the only reason they were doing all this was to skip over the first element. Once again, python has very, very many nice features. They have something called slicing, where you can basically pass it the syntax, which is square bracket, and

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode