Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This function accepts sequential arguments and keyword arguments(kwargs) and adds themand returns true if the sum is greater than 100
- # and false otherwise
- # Function definition
- def plenty_of_arguments(a, b, **kwargs):
- # iterarating using the for loop through the values
- total = a + b
- for val in kwargs.values():
- total += val
- if total > 100:
- print("True")
- else:
- print("False")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement