Translation: "Practical Python Programming" 00_Setup

Curriculum and overview

Welcome to this course (Practical Python Programming). This page contains some important information about the curriculum.

Course period and time requirements

The course was originally an instructor-led on-site training that lasted 3-4 days. To complete this course in its entirety, you should plan to spend at least 25-35 hours of study. Most of the participants found that the learning materials are quite challenging without browsing the solution codes (see below)

Setup and Python installation

You only need to install Python 3.6 or newer. Does not depend on any specific operating system, editor, IDE, or other Python-related tools. No third party reliance.

In other words, most of the content of this course involves learning how to write scripts and small programs, which involve reading data from files. Therefore, you need to make sure that you are in an environment where you can easily handle files. This includes using an editor to create Python programs and being able to run these programs from the shell or terminal.

You may prefer to use a more interactive environment to study this course, such as Jupyter Notebooks. I suggest not to do this . Although Jupyter Notebooks are great, many of the exercises in this course teach concepts related to program organization, including the use of functions, modules, import statements, and refactoring of programs whose source code spans multiple files. In my experience, it is difficult to repeat such an environment in the Jupyter Notebooks environment.

Forking/Cloning Course Repository

In order to prepare the environment of this course, I recommend you to download from the warehouse of this course https://github.com/dabeaz-course/practical-python Derive your own GitHub repository. After it is done, you can clone it to your local computer:

bash % git clone https://github.com/yourname/practical-python
bash % cd practical-python
bash %

Please practical-python/complete all the exercises directory. If you submit the problem-solving code back to the derived warehouse, all your code will be stored in one place. After completion, you will have a good learning record.

If you don’t want to derive your own GitHub repository or you don’t have a GitHub account, you can still clone the repository of this course to your own computer:

bash % git clone https://github.com/dabeaz-course/practical-python
bash % cd practical-python
bash %

If you do this, you will not be able to submit code changes to GitHub, except for making changes to the local copy of your computer.

Course layout

Complete all programming tasks in the Work/ directory. In the Work/ directory, there is a Data/ directory. The Data/ directory contains various data files and other scripts used in the course. You will frequently access the files located in the Data/ directory. The course exercises assume that you create a program in the Work/ directory.

Course order

Course materials should start from section 1 and be completed in order of chapters. The course exercises in the following chapters are based on the code written in the previous chapters. Many of the later exercises involve minor refactorings of existing code.

Problem solution code

Solutions/The table of contents contains solution codes for selected exercises. If you need some tips, please feel free to check it out. In order to make the most of the course, you should first try to create your own solution.

Table of Contents | [Next Section (1 Introduction to Python)]()

Note: see for full translation https://github.com/codists/practical-python-zh

Guess you like

Origin blog.51cto.com/15137915/2666226