News

Perhaps not. Consider [Tushar Sadhwani] who wanted to create a classic C-style for loop inside of Python. He did it, and the journey is perhaps more interesting than the result. First, you can’t ...
We'll quickly go through the basic data types of Python (strings, lists, sets, dictionaries), and cover conditionals and loops (if-else, while loops, for). We'll end with a couple of examples, and ...
The Jupyter Notebook is a web application that allows editing and running notebook documents that contain programming codes, equations, graphical displays and explanatory contents via a web browser.
whatever is a dummy variable that you can replace with other variables. Be sure to indent the statements to repeat in the loop. We need to have at least one condition to implement the loop and make ...
Computational Physics at SFU uses Python 3 from the Anaconda distribution. The documentation on this website will cover using Jupyter notebooks on the SFU Syzygy online servers. As an alternative, you ...