So far, so great!!
Let's continue!! It was very exciting to see McCullum thrash the bowlers around the park and create history in the inaugral match itself. Let's rejuvenate ourselves with his Masterclass.
- Calculates the number of runs scored by Brendon McCullum and stores in a variable.
- Initializes a variable named as
runsto zero. - Access the deliveries delivered in the first innings from the data.
- Iterates on the loop to Access the
delivery infoof Brendon McCullum with the runs he scored and saves it in the variable runs(keeps on updating as runs increases).
| Parameter | dtype | argument type | default value | description |
|---|---|---|---|---|
| data | dict | compulsory | data loaded from the yaml file |
| Return | dtype | description |
|---|---|---|
| variable runs | int | Total runs scored by BB McCullum |