Skip to content

Error while printing (high_temps) #23

Open
@ChongLC

Description

@ChongLC

high_temps = []
for row in rows:
tds = row.find_all('td')
for i in range(1,7):
high_temps.append(tds[i].text)
print(high_temps)


IndexError Traceback (most recent call last)
in ()
8 tds = row.find_all('td')
9 for i in range(1,7):
---> 10 high_temps.append(tds[i].text)
11 print(high_temps)

IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions