# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: 'Python 3.8.8 64-bit (''udemyPro_py388'': venv)'
#     name: python3
# ---

# +
# Order: Arguments, *args, default-arguments, **kwargs
# * ARGS: TUPLE
# **KWARGS: DICT
def my_function(a, *args, x=2, **kwargs):
    print(args, type(args))
    print(kwargs, type(kwargs))

my_function(1,2,3,4, b=False, c=30, d=40.5)


# +
import matplotlib.pyplot as plt

def plot_my_list(list_x, list_y, **kwargs):
    plt.scatter(list_x, list_y, **kwargs)
    plt.show()

list_x = [-3, -2, -1, 1, 1, 3]
list_y = [9,4, 1, 1, 4, 9]

plot_my_list(list_x, list_y, c='red')
# -



StarcoderdataJupyterScriptsDedupFiltered