Writing Python Code
First, let's take a look at how to run Python code on your computer.
note
We will be writing code in Jupyter Notebook. This is a simple way to write code that you can run in the browser.
Installation
info
We will be using Anaconda to launch Jupyter Notebook.
Steps
- Download Anaconda for your operating system from Anaconda's Website
- Run the downloaded installer
- Once installed, search for
Anaconda Navigator
and click on it Launch
Jupyter Notebook- Once Jupyter Notebook opens in your browser, click on
New
in the top-right corner of the screen and selectPython 3
Once complete, you should see this
Writing Code
You are now ready to start writing code!
tip
Have alot of code? Try writing in a new code block by pressing Shift + Enter
.
tip
You can execute your code by pressing Shift + Enter
inside of the code block.
Now, take some time to write some code!