Skip to content

Latest commit

 

History

History
 
 

environment-setup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Python Environment

Ada Build - Intro to Python - Lesson 0

Learning Goals

  • Learn to use Python in the [Google Colab] to complete Ada Build lessons.
  • Understand how repl.it will be use.

Video Intro

The Introduction to Google Colab video will serve as an introduction to the programming environment that you will use for the subsequent lessons. Please view this 11 minute video before continuing.

Google Colab

For the Learning to Code portion of the Ada Build Curriculum you will review notes and complete exercises in a series of lessons in Google Colab. Colab is google's hosting of Jupyter Notebook, an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses for Jupyter Notebook include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more. Here we are using colab and jupyter notebook to create an interative intro to python course.

Before you get started you will need two things:

  1. A Github account to access the Notebooks as Colab will ask Github for access to the document. It's free and something you will likely want to have as you continue this path to become a developer.
  2. A Google Account. You will need this to run the Jupyter Notebooks in Google Colab.

When you first click on the link to a Colab Notebook you may be directed to a page like the one below. Make sure to choose "Open with Google Colaboratory".

Lets take a look at the Preparing to code Notebook.

When you visit the notebooks in Github, you will want to click on Open in Colab.

Open in Colab

Then select Authorize with Github

Authorize with github

Lastly, to keep the colab notebook as your own and save your changes, choose File --> Save a copy in Drive.

Python REPL

Python provides an interactive computer program that allows the user to enter Python code and get results of that code immediately. It is a feature known as a REPL (read, evaluate, print loop). These kinds of programs are great for trying out new commands, practicing syntax, and evaluating solutions to small problems. It's one of the two primary ways to use Python to interact with a computer. The other is to put Python code into a file and then ask the computer to read and execute the code in the file. We will do lots of both.

We will provide solutions for some of the exercises in Ada Build - Introduction to Programming in Python in repl.it.