#!/bin/bash

# Define a function
my_function() {
    # Declare local variables
    local my_var1="Hello"
    local my_var2="World"

    # Access local variables
    echo " local: $my_var1 $my_var2"
}

# Call the function
my_function

echo "Outside: $my_var1 $my_var2"