Function returning multiple values Dry Run in PYTHON

Function returning multiple values is an interactive PYTHON dry run visualizer from the Functions programs section. Study the source code, then use the execution controls to follow each step, variable update, highlighted line, and console output.

This page provides a browser-based dry run with source-code highlighting, auto-scroll, voice narration controls, and execution output for learning the program step by step.

Function returning multiple values Program Code

def min_max_avg(numbers):
    """Return minimum, maximum, and average"""
    return min(numbers), max(numbers), sum(numbers)/len(numbers)

nums = [15, 8, 23, 42, 4, 16]
mn, mx, avg = min_max_avg(nums)
print(f"List: {nums}")
print(f"Min: {mn}, Max: {mx}, Avg: {avg:.2f}")

View the complete Functions programs page.

Program Console Function returning multiple values Topic: PYTHON Vignaankosh.com
Execution Panel
Step 0/0
Console is empty.