Python tutorials

Best and the most useful tutorials for Python developers
18 July 2017   1366

Multi-paradigm programming language with easy-to-use syntax and many features.

Python programming language is a powerful tool for creating various programs for a wide variety of purposes, suitable even for beginners. With its help you can solve different problems. 

Main Python features:

  • xml / html files work support
  • http requests work support
  • GUI (graphical interface)
  • Creating Web Scripts
  • FTP support
  • images, audio and video files
  • Robotics
  • Programming of mathematical and scientific calculations

And many others. 

Thus, python is suitable for solving the lion's share of everyday tasks such as backup, read e-mail, or creating some kind of game. 

The Python programming language is practically unlimited, so it is widely used in large projects. For example, python is heavily used by IT-Giants, such as, for example, Google. In addition, simplicity and universality of Python make it one of the most popular programming languages.

Learning any programming language starts with tutorials. Let’s take a good look on best Python tutorials for beginners.

Official Python tutorial

Great place to start learning any technology is to check official website. Luckily, official Python website has a big free online tutorial.

Official Python tutorial
Official Python tutorial

Tutorial is divided into 16 topics, every topic has many lessons. Tons of code examples included. Convenient navigation makes this web tutorial very handle and easy-to-use.

Python Programming Tutorial

Website, which has Python related tutorials on such topics as:

  • Data Analysis
  • Robotics
  • We Developement
  • Game Developement
  • Python Fundamentals
  • GUI

Python Programming Tutorial
Python Programming Tutorial

All tutorials have related screencast. For example, below you can see the Python 3 Basic Tutorial series video.

Great approach! This is very helpful and it facilitates learning process greatly.

Online tutorial with in-browser coding feature.

Every topic has an interactive example code right in your browser. Simple navigation also included. 

Learn Python the Hard Way

Book, available both in digital and hard formats.

Learn Python the Hard Way
Learn Python the Hard Way

Brilliantly written by the Zed A. Shaw. Hands on. No jargon. Assumes you know nothing, which is extremely important if we are to learn something new.

Great resource for Russian-speaking Python fans.

Has a lot of helpful materials, such as bundlers review, books, guides, docs and many others. Irreplaceable resource for Russian-speaking Python beginner.

Python at Tutorials Point

Tutorials Point is ine of the biggest only tutorials resources. And, naturally, it has a Python Section. 

Python at Tutorials Point
Python at Tutorials Point

Has a "Basic" and "Advanced" levels of tutorials. Simple navigation and large amount of examples included. Also, a python tutorial pdf version available too. 

What Python tutorial is most helpful for you?

Python is one the most popular programming languages in the world. It is a powerful tool for creating various programs for a wide variety of purposes, suitable even for beginners. With its help you can solve different problems.  Please choose the tutorial, which was the most useful for your Python study process. 

What is YAPF?

A formatter for Python files, developed by Google team
30 October 2017   439

What is YAPF?

Most of the current formatters for Python --- e.g., autopep8, and pep8ify --- are made to remove lint errors from code. This has some obvious limitations. For instance, code that conforms to the PEP 8 guidelines may not be reformatted. But it doesn't mean that the code looks good.

YAPF takes a different approach. It's based off of 'clang-format', developed by Daniel Jasper. In essence, the algorithm takes the code and reformats it to the best formatting that conforms to the style guide, even if the original code didn't violate the style guide. The idea is also similar to the 'gofmt' tool for the Go programming language: end all holy wars about formatting - if the whole codebase of a project is simply piped through YAPF whenever modifications are made, the style remains consistent throughout the project and there's no point arguing about style in every code review.

The ultimate goal is that the code YAPF produces is as good as the code that a programmer would write if they were following the style guide. It takes away some of the drudgery of maintaining your code.

Code examples

YAPF takes this code:

x = {  'a':37,'b':42,


y = 'hello ''world'
z = 'hello '+'world'
a = 'hello {}'.format('world')
class foo  (     object  ):
  def f    (self   ):
    return       37*-+2
  def g(self, x,y=42):
      return y
def f  (   a ) :
  return      37+-+a[42-x :  y**3]

and reformat it into:

x = {'a': 37, 'b': 42, 'c': 927}

y = 'hello ' 'world'
z = 'hello ' + 'world'
a = 'hello {}'.format('world')

class foo(object):
    def f(self):
        return 37 * -+2

    def g(self, x, y=42):
        return y

def f(a):
    return 37 + -+a[42 - x:y**3]

See GitHub for more information.