Kizspy | Question: 24
(Choose 1 answer)
Given the code bellow:from bs4 import BeautifulSoup
html doc =
<html><head>
<title>Sample HTML Document</title>
</head>
<body>
<table id="data-table">
<tr><th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>1</td>
<td>3</td>
</tr>
<tr>
<td>2</td>
<td>4</td>
</tr></table>
</body>
</html>
soup = BeautifulSoup(html_doc, 'html.parser')
table = soup.find('table')
row_cells = table.find_all('td")print(len(row_cells[1::2]))
What is the output?
A. 2
B. 1
C. 3
D. 4
FUOVER