Better docstring

Report a typo

George wrote the addition function and wants to write documentation for it. After reading about function annotations, he decided to annotate his function instead of writing docstrings. Help George by adding the following annotations : 'first number', 'second number' and 'result of adding a to b' .

You do not need to handle input or call the function, just implement it.

Sample Input 1:

Sample Output 1:

{'a': 'first number', 'b': 'second number', 'return': 'result of adding a to b'}
Write a program in Python 3
# add annotations for the function addition
def addition(a, b):
pass
___

Create a free account to access the full topic