How do I program in Python

Python course

Tutorial

Welcome to our Python tutorial, a course suitable for self-study. We know that the internet and the book market are teeming with information about Python. Every time authors try to introduce the programming language Python anew. Everyone has their own style and sets their own accents, which can be seen above all in the respective examples. Here we offer an introduction to Python, which introduces programming beginners into programming under Python in many examples.

But there was one more important reason to write this tutorial and put it online: Most good tutorials, tutorials, and courses are only available in English. For many who are interested in Python, this keeps them from bothering with the programming language as they either don't speak English or don't understand it well enough. For them and for all those who prefer to learn in German, we offer this German introduction.

But why should we write long here about the advantages of Python. We do not need to convince you, otherwise you would not have landed on our site during your search.

Philosophy of Python

Python is not just one programming language of many, Python is different from Perl, C, C ++, Java, Lisp or any other programming language. Of course, you can best recognize this when you learn Python, for example working through our course, but nothing reflects the philosophy of Python better than the "Zen of Python", which we are offering here for the first time in its entirety in German translation:


  • Beautiful is better than ugly.
  • Explicit is better than implicit.
  • Simple is better than complicated.
  • Complex is better than obscure.
  • Flat is better than nested.
  • Sparse is better than limited.
  • Legibility matters.
  • Special cases are not special enough to break the rules.
  • Although the practicality surpasses the purity.
  • Errors should never be silent.
  • Unless they have been explicitly silenced.
  • In the face of ambiguity, resist the temptation to guess.
  • There should be one --- and preferably one --- obvious way of doing it.
  • Although this path may not seem obvious at first, unless you are Dutch.
  • Now is better than never.
  • Although never is often better than NOW NOW.
  • If the implementation is difficult to explain, it's a bad idea.
  • If the implementation is easy to explain, it might be a good idea.
  • Namespaces are a bright idea --- let's do more of them!
  • Here also the English original:
  • Beautiful is better than ugly.
  • Explicit is better than implicit.
  • Simple is better than complex.
  • Complex is better than complicated.
  • Flat is better than nested.
  • Sparse is better than dense.
  • Readability counts.
  • Special cases aren't special enough to break the rules.
  • Although practicality beats purity.
  • Errors should never pass silently.
  • Unless explicitly silenced.
  • In the face of ambiguity, refuse the temptation to guess.
  • There should be one-- and preferably only one - obvious way to do it.
  • Although that way may not be obvious at first unless you're Dutch.
  • Now is better than never.
  • Although never is often better than * right * now.
  • If the implementation is hard to explain, it's a bad idea.
  • If the implementation is easy to explain, it may be a good idea.
  • Namespaces are one honking great idea - let's do more of those!
  • advantages

    Python is a programming language that, thanks to its clear syntax and simple structure, is very easy to learn even for total beginners. This language is just as suitable for small scripts and rapid prototyping as it is for large projects that many developers may be working on. The latter is also made easier by the object-oriented approach. An extensive standard library ensures that many problems no longer have to be solved by yourself. Python is platform-independent, i.e. it runs on Linux, as well as on Unix and many Unix systems, Mac and Windows.

    Suggestions

    We look forward to your tips and suggestions for improvement! This will help us to make this website even better. Simply use our contact form (link at the top right)

    Even more zen

    "Do or don't do it, but stop trying."
    "The awareness of not knowing is the beginning of the doubt that leads to wisdom."