color_table = {"Red":[1,2,3], "Blue":[4,5,6]}
def my_function(colortable):
print("List is :-",color_table['Red'])
my_function(color_table)
Here, I would like to pass just first element of the color_table
dictionary in the function my_function
rather than the whole dictionary.
Is it possible to do so?