# Introduction

[Watch on YouTube](https://www.youtube.com/watch?v=7wuKDDMb3R4)

Python is an [open source](https://github.com/python/cpython), cross platform, interpreted language. Cross platform means that a program written on any platform is guaranteed to run across any platform which Python supports. It is a powerful language because there are many third party packages available. The official repository of those packages is <http://pypi.python.org>. Python comes with a tool called `pip` which allows downloading libraries from the official repository.

Python is widely used across major domains. YouTube, Quora, Hulu, Dropbox are just a few platforms written in Python. We can write command line applications, bootloaders, Robots, Machine Learning algorithms, automate test cases, system administration automation etc using Python.

There are few things which make Python an awesome language:

1. English like syntax: It takes very little time to learn the language and write code. This makes it an excellent prototyping language.
2. Less number of lines: Programs implemented in Python have significantly less number of lines as compared to other languages.
3. High level data structures: Hashmaps, sets, lists make it really easy to write complex programs with comparatively less effort..

Drawbacks:

1. Speed: Since it is an interpreted language, it is slower than most languages.&#x20;
2. Debugging: Being a dynamically typed language, it is somewhat difficult to debug the programs.

## Python 2 vs Python3

Python3 is the successor of Python2. In 2020 Python2 will be history. This tutorial is based on Python3 as it is the present and future of the language. Python3 is a backwards incompatible with Python2, which means, code written for Python2 is not guaranteed to run on Python3. There is a way of writing code which runs both on Python 2 and 3, but it is beyond the scope of this guide.

## Installation

1. Windows: Download the latest .exe file of Python3 from <https://python.org> and click on Next Next.
2. Android: Install Termux (<https://termux.com/help.html>), and then `apt-get install python3`..
3. Linux: sudo apt-get install python3 / sudo yum install python3 / use other package manager
4. Mac: brew install python3.
5. iOS: python 3 for ios (not free).

### Links

| [Next](/py/02-more-about-language.md) | [Previous](/py/master.md) | [Index](https://github.com/thewhitetulip/build-app-with-python-antitextbook/tree/5015f48d8ff008fe3d3863df1131c140716d657d/SUMMARY.md) |
| ------------------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://thewhitetulip.gitbook.io/py/01-intro-to-python.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
