Update values in a list python

Update values in list data structure dictionary in python programming. Data structures programs are the basic and important concept for every programmer. In this dictionary program the dict keyword is the main parameter in python programming language. Python dict update value to print in the output for beginners.

dict = {'welcome','to','inlarn'}
print(dict)
dict.update({'programming'})
print(dict)

Output:

{‘to’, ‘inlarn’, ‘welcome’}                                                                                                   {‘to’, ‘inlarn’, ‘welcome’, ‘programming’}