python read a value from object

I am trying to read a value from an object, but I am getting a error:

My object:

data = {"test"}

My code:

data.values()

Error: has no attribute 'values'

Answer

data = {"test"} is a set, not a dictionary, so you could try:

print(list(data))

Or:

print([*data])

Both output:

['test']