1 | initial version |
Hello, @geroyx! Try the following:
x = 1
data = [x/n for n in range (1,4)]
M = []
for d in data:
M.append('$' + latex(d).replace(' ','') + '$')
print(', '.join(M))
The result should be
$1$, $\frac{1}{2}$, $\frac{1}{3}$