Tags » Python

Creating a JSON Editor for Django Admin

Even though editing a raw JSON is pretty easy, it can cause a headache if you deal with 1000 complex object at a time. You also need to ensure that another person who edits the JSON knows how should the JSON is structured. 1,097 more words

Django

Python language basics 43: find the position of an element in a collection

Introduction

In the previous post we looked at how to remove elements from a collection in Python. We discussed the del keyword and the remove function. 179 more words

Python

Importing modules or features

The keyword after ‘import’ is what you can use within the script in which it is being imported into.

from sys import argv

Python

Counting word frequency with Python

Get a great foldable & portable Bluetooth keyboard. Find it here and more. www.ukonnects.com

Often times, you might need to count the frequency of a word from a string or file. 440 more words

Python

ProCodeCG Kids Programming Class 29 Aug 2015 - Simple Encryption

Today. We learned some encryption. Yeah :)

The encryption for today is simple substitution ;)

The kids had to type down everything to find out what “encryption” means. 168 more words

Coding

Python Bytes: How to find out which package a given file belongs to (in a virtualenv)

I was working on a legacy Python project, trying to figure out how it might be deployed in a test environment. The project included a shell script to somewhat automate deployment. 337 more words

English

Python 2 and Python 3 side by side: conda

Python 3 is gradually replacing Python 2 and is some of the newest Linux distributions like Fedora 23, it is installed as default.

So the question is if you have a library of python 2.x programs and you want to start learning python 3 and updating your codes, how can you install all the necessary packages like matplotlib, scipy, nompy, etc for both versions of python without messing up the system (since Linux desktops e.g. 516 more words

Python