Code icon

The App is Under a Quick Maintenance

We apologize for the inconvenience. Please come back later

Menu iconMenu iconData Analysis Foundations with Python
Data Analysis Foundations with Python

Chapter 4: Setting Up Your Data Analysis Environment

4.4 Practical Exercises Chapter 4: Setting Up Your Data Analysis Environment

Exercise 4.1: Installing Anaconda

  1. Download the Anaconda installer for your operating system from Anaconda's official website.
  2. Follow the installation instructions and validate the installation by running the following command in your terminal:
    conda --version
  3. Share your screen capture of the successful installation as evidence of completion.

Exercise 4.2: Jupyter Notebook Basics

  1. Launch Jupyter Notebook by typing jupyter notebook in the terminal.
  2. Create a new Jupyter notebook and name it My_First_Notebook.
  3. Inside the notebook, create the following:
    • A Markdown cell with a level-1 header saying "My First Notebook"
    • A code cell that outputs Hello, World!
    print("Hello, World!")
  4. Save and download the notebook.

Exercise 4.3: Git for Version Control

  1. Install Git if you haven't already. Validate the installation by running the following command in your terminal:
    git --version
  2. Create a new directory and initialize a new Git repository inside it.
    mkdir my_git_project
    cd my_git_project
    git init
  3. Create a .gitignore file and add a rule to ignore .DS_Store files (if you're on a Mac).

    Example .gitignore:

    .DS_Store
  4. Commit the .gitignore file to your repository.
    git add .gitignore
    git commit -m "Added .gitignore"
  5. Create a new file called README.md and write "This is my first Git project" inside it.
  6. Commit this new file to your Git repository.
    git add README.md
    git commit -m "Added README"

These exercises should give you hands-on experience with the concepts covered in this chapter. Follow them through, and you'll have set up your first data analysis environment, complete with version control.

4.4 Practical Exercises Chapter 4: Setting Up Your Data Analysis Environment

Exercise 4.1: Installing Anaconda

  1. Download the Anaconda installer for your operating system from Anaconda's official website.
  2. Follow the installation instructions and validate the installation by running the following command in your terminal:
    conda --version
  3. Share your screen capture of the successful installation as evidence of completion.

Exercise 4.2: Jupyter Notebook Basics

  1. Launch Jupyter Notebook by typing jupyter notebook in the terminal.
  2. Create a new Jupyter notebook and name it My_First_Notebook.
  3. Inside the notebook, create the following:
    • A Markdown cell with a level-1 header saying "My First Notebook"
    • A code cell that outputs Hello, World!
    print("Hello, World!")
  4. Save and download the notebook.

Exercise 4.3: Git for Version Control

  1. Install Git if you haven't already. Validate the installation by running the following command in your terminal:
    git --version
  2. Create a new directory and initialize a new Git repository inside it.
    mkdir my_git_project
    cd my_git_project
    git init
  3. Create a .gitignore file and add a rule to ignore .DS_Store files (if you're on a Mac).

    Example .gitignore:

    .DS_Store
  4. Commit the .gitignore file to your repository.
    git add .gitignore
    git commit -m "Added .gitignore"
  5. Create a new file called README.md and write "This is my first Git project" inside it.
  6. Commit this new file to your Git repository.
    git add README.md
    git commit -m "Added README"

These exercises should give you hands-on experience with the concepts covered in this chapter. Follow them through, and you'll have set up your first data analysis environment, complete with version control.

4.4 Practical Exercises Chapter 4: Setting Up Your Data Analysis Environment

Exercise 4.1: Installing Anaconda

  1. Download the Anaconda installer for your operating system from Anaconda's official website.
  2. Follow the installation instructions and validate the installation by running the following command in your terminal:
    conda --version
  3. Share your screen capture of the successful installation as evidence of completion.

Exercise 4.2: Jupyter Notebook Basics

  1. Launch Jupyter Notebook by typing jupyter notebook in the terminal.
  2. Create a new Jupyter notebook and name it My_First_Notebook.
  3. Inside the notebook, create the following:
    • A Markdown cell with a level-1 header saying "My First Notebook"
    • A code cell that outputs Hello, World!
    print("Hello, World!")
  4. Save and download the notebook.

Exercise 4.3: Git for Version Control

  1. Install Git if you haven't already. Validate the installation by running the following command in your terminal:
    git --version
  2. Create a new directory and initialize a new Git repository inside it.
    mkdir my_git_project
    cd my_git_project
    git init
  3. Create a .gitignore file and add a rule to ignore .DS_Store files (if you're on a Mac).

    Example .gitignore:

    .DS_Store
  4. Commit the .gitignore file to your repository.
    git add .gitignore
    git commit -m "Added .gitignore"
  5. Create a new file called README.md and write "This is my first Git project" inside it.
  6. Commit this new file to your Git repository.
    git add README.md
    git commit -m "Added README"

These exercises should give you hands-on experience with the concepts covered in this chapter. Follow them through, and you'll have set up your first data analysis environment, complete with version control.

4.4 Practical Exercises Chapter 4: Setting Up Your Data Analysis Environment

Exercise 4.1: Installing Anaconda

  1. Download the Anaconda installer for your operating system from Anaconda's official website.
  2. Follow the installation instructions and validate the installation by running the following command in your terminal:
    conda --version
  3. Share your screen capture of the successful installation as evidence of completion.

Exercise 4.2: Jupyter Notebook Basics

  1. Launch Jupyter Notebook by typing jupyter notebook in the terminal.
  2. Create a new Jupyter notebook and name it My_First_Notebook.
  3. Inside the notebook, create the following:
    • A Markdown cell with a level-1 header saying "My First Notebook"
    • A code cell that outputs Hello, World!
    print("Hello, World!")
  4. Save and download the notebook.

Exercise 4.3: Git for Version Control

  1. Install Git if you haven't already. Validate the installation by running the following command in your terminal:
    git --version
  2. Create a new directory and initialize a new Git repository inside it.
    mkdir my_git_project
    cd my_git_project
    git init
  3. Create a .gitignore file and add a rule to ignore .DS_Store files (if you're on a Mac).

    Example .gitignore:

    .DS_Store
  4. Commit the .gitignore file to your repository.
    git add .gitignore
    git commit -m "Added .gitignore"
  5. Create a new file called README.md and write "This is my first Git project" inside it.
  6. Commit this new file to your Git repository.
    git add README.md
    git commit -m "Added README"

These exercises should give you hands-on experience with the concepts covered in this chapter. Follow them through, and you'll have set up your first data analysis environment, complete with version control.