| 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}$
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.