I like to know is there way to access elements in an object using .(dot) operator (show_letters.a
) without creating a class. I know I can access in following way
def show_letters(letters):
print(letters['a'])
def main():
letters = {"a": 2, "b": 3, "c":4}
show_letters(letters)
main()
how can access show_letters.a
or is it possible?