Contact Us!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download
Views: 18
Image: ubuntu2004
Kernel: Python 3 (system-wide)
[i for i in range(1,50) if i%2 ==1]
[1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49]

I made a set list of numbers from 1-50. We know that odd numbers have 1 remainder so I instead of a 0, It is a 1. If I did keep the, it would display all the even numbers from 1-50 not the odd ones.