What exactly does a for loop with a colon instead of a comma do? I have a list and a for loop printing all of the items in the list. Sorry if this is really simple but I have attempted finding an answer online and I am somewhat new to Python.
import requests from bs4 import BeautifulSoup
page = requests.get("https://talksport.com/football/572055/") soup = BeautifulSoup(page.content, 'html.parser')
clubs = soup.findAll("h3")
for club in clubs[17:-2]:
# do something