From 4bfd1d00ea0102162fbfe31055dd4fe0740586a1 Mon Sep 17 00:00:00 2001 From: ABHISHEK THOMBRE Date: Fri, 1 Dec 2017 14:52:48 +0530 Subject: [PATCH] Update README.md --- q07_extras/README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/q07_extras/README.md b/q07_extras/README.md index e33e0c0c..e0c658c1 100644 --- a/q07_extras/README.md +++ b/q07_extras/README.md @@ -1,13 +1,23 @@ -## How many more "extras" (wides, legbyes, etc) were bowled in the second innings as compared to the first inning? +# How many more "extras" (wides, legbyes, etc) were bowled in the second innings as compared to the first inning? The task is to find the number of more **extras** bowled in the second innings, compared to first. -* Save the number of more **extras** bowled in the second innings as opposed to first, in the variable `difference`. +## Write the function `extras_runs` that : -You will get to use one of the binary operators, we studied in the class. +* Extracts the information of key `extras` present in the 1st innings and stores it in a list. +* Extracts the information of key `extras` present in the 2st innings and stores it in another list. +* Calculates the difference of extras and between 1st and 2nd innings and store it in a variable `difference`. -Seems interesting, right? +### Parameters: -The function must return an integer. +| Parameter | dtype | argument type | default value | description | +| --- | --- | --- | --- | --- | +| data | dict | compulsory | | data loaded from the yaml file | + +### Returns: + +| Return | dtype | description | +| --- | --- | --- | +| variable difference | int |Extra runs scored | _Hint: Find the total count of extras bowled in the first innings, and the total count of extras bowled in the second innings. Subtract them._