Python — Introduction

Alvif Sandana Mahardika
2 min readMar 29, 2021

Hi, this is my first post since I know Medium.com as an online publishing platform that helps me find solutions for my code for about 4 years.

If we talk about code, there are many programming languages can we use for making a program. One of them is Python. With a lot of packages, we can easily create our program with Python. Python was created by Guido van Rossum at Centrum Wiskunde & Informatica (CWI), Netherlands in 1994. Python language is inspired by the ABC language. So, I think Python is a programming language that easy to learn.

Why use Python?

A lot of Packages

Python has a lot of packages that available in PyPI (Python Package Index) and you can install your needed package with PIP or another Python package manager.

Flexible

By using Python you can implement it in various programs like IoT, web development, data science, and many more.

Simple

Python has simple syntax forms. This is a reason why Python easy to learn. If you want to learn more about python, the following section will discuss how to install Python on PC or laptop.

Install Python (Ubuntu 20.04 LTS)

Open your terminal by pressing Ctrl+Alt+t keys. Type this command to your terminal:

$ sudo apt-get update
$ sudo apt-get install python3.8 python3-pip

Wait until the installation process complete and check the installation by typing this command:

$ python3 --version

it will be shown the following result :

$ python3 --version 
Python 3.7.3

Install Code Editor

Congratulation, you have successfully installed Python on your machine🎉 🎉 🎉 Before you go, you need to install a code editor to help you write your Python code. You can use Visual Studio Code or PyCharm Community Edition for your code editor. In this case, I use PyCharm in my machine because it has many features that help me to write my code comfortably.

First, download Pycharm from the official website and choose “Community”. Extract to your specified directory. For example, I extract PyCharm to

/home/my-user/dev/PyCharm 

Add pycharm.sh (in bin directory inside PyCharm directory) to your .bashrc :

alias pycharm="/home/your-username/dev/PyCharm/bin/pycharm.sh"

Finally, you can run it by typing “pycharm” to your terminal.

Thanks for reading my post. In the next post, we will discuss Variables in Python.

Happy coding and Code your life :)

--

--