When programming in Python, escape characters can be used in order to tell the compiler that it should treat the next character or characters differently. For example, we can tell Python to print a quote "
as an actual quote character, rather than interpreting it to be part of the Python code. Other special characters like \t
can create TAB spaces, and \n
can create new lines. In this tutorial, you will see a list of Python escape sequence characters and examples that you can use on a Linux system.
python
How to write Nautilus extensions with nautilus-python
Nautilus, also known as “Files”, is the default file manager of the GNOME desktop environment. In a previous tutorial we saw how to create and call custom scripts from the Nautilus context-menu: this feature can be really useful but is somehow limited. By installing the nautilus-python package in our favorite Linux distribution, and writing just few lines of Python code, we can overcome such limitations and create proper Nautilus extensions.
Install Python 2 on Ubuntu 20.04 Focal Fossa Linux
This tutorial will show how to install Python2 for Ubuntu 20.04 Focal Fossa Linux. Python 2 has not been the default installed version on Ubuntu for a few years, but it’s still possible to install Python2 and to install Python 2.7 on Ubuntu.
How to manage git repositories with Python
Neither Python nor Git need presentations: the former is one of the most used general-purpose programming language; the latter is probably the most used version control system in the world, created by Linus Torvalds himself. Normally, we interact with git repositories using the git binary; when we need to work with them using Python, instead, we can use the GitPython library.
Install Numpy on Ubuntu 22.04 Jammy Jellyfish Linux
NumPy is a Python library, which supports large, multi-dimensional arrays and matrices. It also offers a wide set of high-level mathematical functions to operate on these arrays. The objective of this short guide is to install NumPy on Ubuntu 22.04 Jammy Jellyfish Linux.
Using Python to Parse JSON
The objective of this article is to describe how to parse JSON data in Python.
How to build a Tkinter application using an object oriented approach
In a previous tutorial we saw the basic concepts behind the usage of Tkinter, a library used to create graphical user interfaces with Python. In this article we see how to create a complete although simple application. In the process, we learn how to use threads to handle long running tasks without blocking the interface, how to organize a Tkinter application using an object oriented approach, and how to use Tkinter protocols.
Getting started with Tkinter for Python tutorial
Tkinter stands for “Tk interface”: the package with the same name on many Linux distributions provides the Python bindings for the Tcl/Tk GUI toolkit. Although other graphical toolkit can be used from Python, like Qt or GTK, Tkinter is the standard (the Python IDLE editor and development environment is written using this toolkit, for example) and probably the easiest to work with.
Install Python 2 on Ubuntu 22.04 Jammy Jellyfish Linux
This tutorial will show how to install Python 2 for Ubuntu 22.04 Jammy Jellyfish. Python 2 has not been the default installed version on Ubuntu versions for a few years, but it’s still possible to install Python 2 and to install Python 2.7 on Ubuntu 22.04.
How to install PyCharm on Ubuntu 22.04 Linux Desktop
The purpose of this tutorial is to install PyCharm on Ubuntu 22.04 Jammy Jellyfish Linux.
Kali http server setup
There are multiple ways to set up an HTTP web server in Kali Linux. Apache, NGINX, and Python are a few of the ways this can be accomplished.
How to install pip on Kali Linux
pip is the package manager for the Python coding language. It can be installed on a Linux system and then used on the command line to download and install Python packages and their requisite dependencies.