PYTHON

How to Sort a List Using Python Sort List() Method

How to sort list in python

We have a list of numbers or strings, and we want to sort the items in this list. Basically, we can either use sort method or sorted function to achieve what we want. The difference between sort and sorted is that [...]

Ahmed Abdalhamid 2:43 am

How to Use Python raw_input Function with Examples

use raw_input Python

Python is one of the easiest languages to learn and use, while at the same time being very powerful. Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. The Python input() and raw_input() functions are used to read data [...]

Ahmed Abdalhamid 12:05 am

How to Setup Python Virtual Environment on Ubuntu 18.04

SetUp Python Local Programming Environment Ubuntu

Python is a versatile programming language that can be used for many different programming projects(Web - Mobile - Desktop). Easy to set up, and written in a relatively straightforward style with immediate feedback on errors, Python is a great choice [...]

Ahmed Abdalhamid 2:18 am

How to Install Flask with Python 3 on Ubuntu 18.04

Install Flask Python ubuntu

Flask is a very simple, but extremely flexible framework meant to provide your applications with functionality without being too restrictive about structure and design. You can use the general stack described in this article to serve the flask applications that [...]

Ahmed Abdalhamid 1:03 am

How to Install Latest Python on Ubuntu 18.04

Install Python Ubuntu

In this article, we are going to show how to install the latest python on Ubuntu 18.04 machine using the terminal. Also, we will create a virtual environment and a simple program and run it. At the moment of writing [...]

Hayk Gevorgyan 9:41 am

How to Generate Fibonacci Sequence in Python

In this article I will share a simple script that can be used to generate fibonacci sequence numbers. In case you guys don't know the numbers in the following integer sequence: 1,1,2,3,5,8,13,21,34,55,89........... Each new term in the Fibonacci Series is [...]

Oltjano Terpollari 3:00 am