As working on a program using Dict in Python, I am getting a format other than required: the code is as follows:
a = {1:2,2:3,3:4,4:8}
print(a.values())
getting an output:
dict_values([2, 3, 4, 8])
here in the output, there is no requirement of "dict_values" and "{ [ ] }", How to remove these wanted things? Actually, I have tried striping but I am thinking of some professional functions to use.