Lesson 71

This commit is contained in:
David Avery 2020-02-05 13:48:43 +00:00
parent 75b628d474
commit d2f60c6bb0
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,2 @@
def find_sum(**kwargs): myfile = open("fruits.txt")
return sum(kwargs.values()) print(myfile.read())
print(find_sum(a=4, b=3, c=2))

6
fruits.txt Normal file
View File

@ -0,0 +1,6 @@
pear
apple
orange
mandarin
watermelon
pomegranate