-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathbuild.py
More file actions
32 lines (18 loc) · 778 Bytes
/
Copy pathbuild.py
File metadata and controls
32 lines (18 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# %load q06_bowled_players/build.py
# Default Imports
from greyatomlib.python_getting_started.q01_read_data.build import read_data
data = read_data()
# Your Solution
def bowled_out(data=data):
#Write your code here
l=(data['innings'][1]['2nd innings']['deliveries'])
c=[]
for x in l:
for y in x:
if 'wicket' in x[y]:
if 'bowled' in x[y]['wicket']['kind']:
print(x[y]['wicket']['player_out'])
c.append(x[y]['wicket']['player_out'])
bowled_players=c
return bowled_players
bowled_out