Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #function
- def plenty_of_arguments(a, b, **kwargs):
- total = 0
- for key in kwargs:
- total = total + kwargs[key] + (a + b) #This will add a and b and all the values in the dictionary
- if total > 100:
- print(True)
- else:
- print(False)
- plenty_of_arguments(20, 30, c = 14, d = 7) #Example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement