Use Markdown to style code:
- Use a single backtick (`) at the beginning and end of your single code line:
print("hello world")
- Use three backticks (```) at the beginning and end of multiple code lines:
def hello(name):
print(f"hello {name}")
Thinking about how sigma works
You need an initial sum.
You then want a way to add the expression with each succession. As Sato said, a for loop would be good for this - going from the range of lower to upper bound
With each iteration of the loop add the result of the expression to the current sum