For questions about Python programming that are specific to version 2.x of the language.
I'm having problems dealing with unicode characters from text fetched from different web pages (on different sites). I am using …
python unicode beautifulsoup python-2.x python-unicodeIn Python 2.7, I could get dictionary keys, values, or items as a list: >>> newdict = {1:0, 2:0, 3:0} >>> …
python python-3.x list dictionary python-2.xThis problem is killing me. How does one roundup a number UP in Python? I tried round(number) but it …
python floating-point integer rounding python-2.xAre there any applicable differences between dict.items() and dict.iteritems()? From the Python docs: dict.items(): Return a copy …
python dictionary python-2.xPython's math module contain handy functions like floor & ceil. These functions take a floating point number and return the …
python math integer python-2.xI have two integer values a and b, but I need their ratio in floating point. I know that a &…
python floating-point integer division python-2.xI am using Python version 2.5.4 and install MySQL version 5.0 and Django. Django is working fine with Python, but not MySQL. …
python django python-2.xI want to redirect the print to a .txt file using python. I have a 'for' loop, which will 'print' …
python-2.x file-writingWhat is the raw_input function? Is it a user interface? When do we use it?
python python-2.xWhile asking this question, I realized I didn't know much about raw strings. For somebody claiming to be a Django …
python unicode python-2.x rawstring