Top "Python-2.7" questions

Python 2.7 is the last major version in the 2.x series, and is no longer maintained since January 1st 2020.

Combine several images horizontally with Python

I am trying to horizontally combine some JPEG images in Python. Problem I have 3 images - each is 148 x 95 - …

python-3.x python-2.7 python-imaging-library python-2.x paste
Using python PIL to turn a RGB image into a pure black and white image

I'm using the Python Imaging Library for some very simple image manipulation, however I'm having trouble converting a greyscale image …

python python-imaging-library python-2.7
Python: Assign Value if None Exists

I am a RoR programmer new to Python. I am trying to find the syntax that will allow me to …

python python-2.7 variable-assignment language-comparisons
Python Requests - No connection adapters

I'm using the Requests: HTTP for Humans library and I got this weird error and I don't know what is …

python python-2.7 python-requests
Python dict how to create key or append an element to key?

I have an empty dictionary. Name: dict_x It is to have keys of which values are lists. From a …

python python-2.7 python-3.x dictionary
Delete a dictionary item if the key exists

Is there any other way to delete an item in a dictionary only if the given key exists, other than: …

python python-2.7
Command line input in Python

Is it possible to run first the program then wait for the input of the user in command line. e.…

python command-line input python-2.7 user-input
Python: Pandas pd.read_excel giving ImportError: Install xlrd >= 0.9.0 for Excel support

I am trying to read a .xlsx with pandas, but get the follwing error: data = pd.read_excel(low_memory=…

python excel python-2.7 pandas
How to locate and insert a value in a text box (input) using Python Selenium?

I have the following HTML structure and I am trying to use Selenium to enter a value of NUM: <…

python python-2.7 selenium-webdriver form-submit html-input
Installing tkinter on ubuntu 14.04

I want to run python code on Ubuntu 14.04, but when I execute it, it gives me the following error message …

python python-2.7 tkinter ubuntu-14.04