```
def return_exp_list_as_str(obj: list[Exponent], fancy: bool = False, brackets: str = "[]", just_print: bool = False) -> str:
output = ""
if fancy:
try:
output += f"{brackets[0]}"
except IndexError:
pass
output += f"{obj[0]}, \n"
for exp in obj[1:-1]:
output += f" {exp},\n"
try:
output += f" {obj[-1]}{brackets[1]}\n"
except IndexError:
pass
elif just_print:
lst = []
for exp in obj:
lst.append(str(exp.b) + superscript(exp.p))
for i in lst[:-1]:
output += i
output += " * "
output += lst[-1]
else:
try:
output += f"{brackets[0]}"
except IndexError:
pass
output += f"{obj[0]}, \n"
for exp in obj[1:-1]:
output += f" {exp}, \n"
try:
output += f" {obj[-1]}{brackets[1]}\n"
except IndexError:
pass
return output
```