Coder Social home page Coder Social logo

pyneng-examples-exercises-en.'s Introduction

Examples and exercises from the book "Python for Network Engineers"

Python 3.7 Python 3.8

All examples and exercises have been tested in Python 3.7 and 3.8.

The assignments will be useful even if you are reading another Python book. All tasks are focused on network topics.

Links

How to create your own repository for tasks

Git/Github basics

Creating a repository on GitHub

To create your own repository based on a template, you need:

  • open tasks repo
  • above the file list, click Use this template
  • type a name for your repository
  • click Create repository from template
  • now you have a new repository with the same directory structure and files as pyneng-examples-exercises-en

Clone repository

To work locally with the repository, you need to clone it. To do this, use the git clone command:

$ git clone [email protected]:natenka/my_tasks.git
Cloning into 'my_tasks'...
remote: Counting objects: 241, done.
remote: Compressing objects: 100% (191/191), done.
remote: Total 241 (delta 43), reused 239 (delta 41), pack-reused 0
Receiving objects: 100% (241/241), 119.60 KiB | 0 bytes/s, done.
Resolving deltas: 100% (43/43), done.
Checking connectivity... done.

In the command output above, you need to change:

  • username natenka to your username on GitHub
  • repository name my_tasks to the name of your repository

As a result, in the current directory where the git clone command was executed, a directory with the name of the repository will appear, in my case - "my_tasks". This directory now contains local copy of the repository with tasks.

Tasks (exercises)

The exercises directory contains tasks with numbers corresponding to the sections of the book. In addition, there are all additional files (configurations, etc.) that are used in tasks.

Tests

Starting from section “4. Data types in Python ”there are automated tests for testing tasks. They help to check whether everything matches the task, and also give feedback on what does not correspond to the task. As a rule, after the first period of adaptation to tests, it becomes easier to do tasks with tests. Testing is done using the pyneng utility.

Learn more about how to work with the pyneng utility.

pyneng-examples-exercises-en.'s People

Contributors

d-mbithi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.