Skip to content

Commit Live PR #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python_assignment
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Get the sum of even numbers between 1 and 151 exluding first 7 even numbers
sum_even_btwn_1to151=sum(map(lambda (k,v):v,filter((lambda (k,v):(k > 6)),list(enumerate(map(lambda b:b**2,(filter((lambda a:a%2==0),range(1,151)))))))))
10 changes: 4 additions & 6 deletions q01_read_data/build.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# %load q01_read_data/build.py
import yaml

def read_data():
with open('./data/ipl_match.yaml', 'r') as f:
data = yaml.load(f)
return data

# import the csv file into `data` variable
# You can use this path to access the CSV file: '../data/ipl_match.yaml'
# Write your code here

data =

# return data variable
return data
12 changes: 6 additions & 6 deletions q02_teams/build.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# %load q02_teams/build.py
# default imports
from greyatomlib.python_getting_started.q01_read_data.build import read_data
data = read_data()

#data = read_data()
# solution
def teams(data=data):
def teams(data):
teams = data['info']['teams']
return teams


# write your code here
#teams =

return teams
8 changes: 3 additions & 5 deletions q03_first_batsman/build.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# %load q03_first_batsman/build.py
# Default Imports
from greyatomlib.python_getting_started.q01_read_data.build import read_data
data = read_data()

# Your Solution
def first_batsman(data=data):

# Write your code here

name = data['innings'][0]['1st innings']['deliveries'][0][0.1]['batsman']
return name



return name