Skip to content

learn-co-students/dsc-1-01-07-working-with-lessons-on-learn-lab-nyc-ds-career-012819

Repository files navigation

Working with Lessons on Learn - Lab

Introduction

Now that we have had an introduction to the command line, have seen how to clone GitHub repos to our local machine (our computer), and have seen some common Jupyter Notebook operations, it's time to put our skills to the test! Follow the instructions below to pass the tests for this lab. If you're unfamiliar with the concept of variables, don't worry. Just follow along with the instructions - we'll talk about variables and data types much more in the next few lessons!

Objectives

You will be able to:

  • Make changes to a Jupyter Notebook and push it up to GitHub
  • Perform basic computations in a Jupyter Notebook and store them in a variable

Setup

Remember from the last lesson, you need to:

  1. Click on the "GitHub" logo in the top right of the learn.co page
  2. Fork the repository on GitHub so you have your own copy there
  3. Copy the URL of your repository
  4. Open a terminal window (terminal on a Mac, Git Bash on Windows)
  5. Make sure to activate your conda virtual environment so you have the right version of Python and all of the necessary packages. On a mac or in Git Bash on Windows, type source activate learn-env. (If you have to use the conda shell on windows, type activate learn-env instead).
  6. Clone (download) the files to your hard drive by typing git clone and then pasting the URL of your repo you saved in step 3.
  7. Type cd followed by the name of the directory you just created (running the ls command will show you the name of the directory you downloaded)
  8. Run the jupyter notebook command to start up Jupyter, and in the browser window that opens, navigate to and click on the index.ipynb notebook.

Instructions

Assign the below variable number to the number 42 by replacing None with 42.

number = None
number

Next, like the above, reassign the flatiron_mantra variable with the string "Learn. Love. Code." (make sure to include the double quotes!)

flatiron_mantra = None
flatiron_mantra

Summary

Great work! We are well on our way to mastering Jupyter notebooks! We practiced reassigning variables, running cells, and checking our outputs.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •