I try to avoid the for loop
when printing list items.
Done few attempts to do that but always wrong. Example:
print('\n*'.join(i) for i in li)
<generator object <genexpr> at 0x7ff0c0e8b900>
I want equivalent of that:
li = ['apple', 'beetroot', 'cabbage']
for e in li:
print(f'*{e}')
*apple
*beetroot
*cabbage