What is __pycache__?

From what I understand, a cache is an encrypted file of similar files. What do we do with the __pycache__ folder? Is it what we give to people instead of our source code? Is it just my input data? This folder keeps getting created, what it is for?

How to change the font size on a matplotlib plot

From the matplotlib documentation, This sets the font of all items to the font specified by the kwargs object, font. Alternatively, you could also use the rcParams update method as suggested in this answer: or You can find a full list of available properties on the Customizing matplotlib page.

How to check Django version

Django 1.5 supports Python 2.6.5 and later. If you’re under Linux and want to check the Python version you’re using, run python -V from the command line. If you want to check the Django version, open a Python console and type

How to check if the string is empty?

Empty strings are “falsy” (python 2 or python 3 reference), which means they are considered false in a Boolean context, so you can just do this: This is the preferred way if you know that your variable is a string. If your variable could also be some other type then you should use myString == “”. See the documentation … Read more