n*1/n^2 for n = 1,2,3,50.
new to sage math trying to practice and need some help generating a list for 1/n^2 where n = 1,2,3,...50 any help is appreciated
new to sage math trying to practice and need some help generating a list for 1/n^2 where n = 1,2,3,...50 any help is appreciated
Please check this:
v=[1/n^2 for n in range(1,51)]
print(v)
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2023-09-09 22:34:01 +0100
Seen: 362 times
Last updated: Sep 10 '23
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.
List comprehension: