Function Parameters
Pass information into functions and return calculated results.
Learn by experimenting
Study the Python code, run it, change values and observe the output. Practical experimentation is an important part of learning programming.
Python Code
Python runs directly in your browser.
def add(a, b):
return a + b
result = add(10, 20)
print('Result:', result)
Python Output
Program output appears here.
Test your understanding
Choose the best answer.
Which Python structure stores key-value pairs?