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.

How to pip or easy_install tkinter on Windows

My Idle is throwing errors that and says tkinter can't be imported. Is there a simple way to install tkinter …

python python-2.7 tkinter pip easy-install
How to convert a string to utf-8 in Python

I have a browser which sends utf-8 characters to my Python server, but when I retrieve it from the query …

python python-2.7 unicode utf-8
How do I install the yaml package for Python?

I have a Python program that uses YAML. I attempted to install it on a new server using pip install …

python python-2.7 yaml pip pyyaml
How do I compare two strings in python?

I have two strings like string1="abc def ghi" and string2="def ghi abc" How to get that this two …

python string python-2.7 string-comparison
Converting dictionary to JSON

r = {'is_claimed': 'True', 'rating': 3.5} r = json.dumps(r) file.write(str(r['rating'])) I am not able to access …

python json python-2.7 dictionary
HTTP requests and JSON parsing in Python

I want to dynamically query Google Maps through the Google Directions API. As an example, this request calculates the route …

python json python-2.7
Python 2.7 getting user input and manipulating as string without quotations

I want to get a string from a user, and then to manipulate it. testVar = input("Ask user for something.") …

python string python-2.7
Adding Python Path on Windows 7

I've been trying to add the Python path to the command line on Windows 7, yet no matter the method I …

python windows python-2.7 path
How to update Python?

I have version 2.7 installed from early 2012. I can't find any consensus on whether I should completely uninstall and wipe this …

python python-2.7 installation upgrade windows-7-x64
Zip lists in Python

I am trying to learn how to "zip" lists. To this end, I have a program, where at a particular …

python python-2.7