Skip to content
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
Binary file added __pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified q01_chocolates/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified q01_chocolates/__pycache__/build.cpython-36.pyc
Binary file not shown.
20 changes: 10 additions & 10 deletions q01_chocolates/build.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@


input_list = []

# Write your solution here:


def q01_chocolates(my_list=input_list):


input_list=[1,2,5,8]
def q01_chocolates(my_list=input_list):
x=0
output_list=[]
for index in my_list:
if index %2 !=0:
x+=index
output_list.append(x)
return output_list
q01_chocolates(input_list)


Binary file modified q01_chocolates/tests/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file not shown.