Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Project: Shared Project -- Fall 2021 MAT1630
Views: 129Image: ubuntu2004
Kernel: Python 3 (system-wide)
This is an algorithm that sums the values 1, 2, 3, 4, 5 in two ways: using the for loop and using the while loop.
First, we use the for loop method:
In [25]:
Out[25]:
15
Here's a way using the while loop:
In [26]:
Out[26]:
15