test2 = [1,2,3,4,5]
print(f'The following Attributes are not supported \n {"\n".join([str(i) for i in test2])}')
Intended output:
The following Attributes are not supported
1
2
3
4
5
Is there any way I could achieve this whilst keeping it on the same line? The error received is as follows: Unterminated expression in f-string; missing close brace