value = ["a", "b", "c"]

if isinstance(value, list):
    first_item = value[0]
else:
    first_item = value   # it wasn't a list at all — treat the bare value as the only item

print(first_item)