Top "Python-3.3" questions

For issues that are specific to Python 3.3. Use the more generic [python] and [python-3.x] tags where possible.

Printing subscript in python

In Python 3.3, is there any way to make a part of text in a string subscript when printed? e.g. …

python python-3.x python-3.3 subscript
Iterate over OrderedDict in Python

I have the following OrderedDict: OrderedDict([('r', 1), ('s', 1), ('a', 1), ('n', 1), ('y', 1)]) This actually presents a frequency of a letter in …

python python-3.x dictionary python-3.3 ordereddict
Removing non numeric characters from a string

I have been given the task to remove all non numeric characters including spaces from a either text file or …

python python-3.x python-3.3
Ubuntu - How to install a Python module (BeautifulSoup) on Python 3.3 instead of Python 2.7?

I have this code (as written in BS4 documentaion): from bs4 import BeautifulSoup When I run the script (using python3) …

python python-2.7 ubuntu beautifulsoup python-3.3
'str' object has no attribute 'decode' in Python3

I've some problem with "decode" method in python 3.3.4. This is my code: for lines in open('file','r'): decodedLine = lines.…

python python-3.x python-3.3
How to write a dictionary into an existing file?

Let's say I have a dictionary and I want to write it into an existing file. How can I do …

python dictionary python-3.3
Python count items in dict value that is a list

Python 3.3, a dictionary with key-value pairs in this form. d = {'T1': ['eggs', 'bacon', 'sausage']} The values are lists of …

python list dictionary count python-3.3
Python sort() first element of list

I have a list that contains non specific amount of elements but every first element of the nested list is …

python list sorting python-3.3
How to use 2to3 properly for python?

I have some code in python 2.7 and I want to convert it all into python 3.3 code. I know 2to3 can …

python python-2.7 python-3.3 python-2to3
How do I compile my Python 3 app to an .exe?

How do I convert my Python app to a .exe? I made a program with tkinter and was wondering how …

python tkinter compilation exe python-3.3