Category: Python

Python code examples

Python – SQL Alchemy or plain SQL ?

Using SQL in Python reminded me of the “fun” I used to have in VBA MS Access, when I had to concatenate strings in VBA. Probably I was not the only one having “fun” and enjoying it, thus some good and

Tagged with: , , , ,

Python / Sqlite3 – Make a DB with Python

Some time ago, I have built something like a primitive SQL language for C# here. Today, I have worked on a similar task, checking the powers of Sqlite3 with Python. This time it was not that primitive and the results were better

Tagged with: , , ,

Python – Crawling the top 50 sites from Bulgaria for their servers

Have you ever wondered on what servers the top 50 most visited Bulgarian sites run? That is definitely an interesting question, if you are Bulgarian IT admin and you have pretty much free time 🙂 Anyway, as far as I am

Tagged with: , , ,

Python – Who follows you at GitHub?

Who follows you? Who follows your followers? And who follows the followers of your followers? And what about the next level? These are pretty interesting question actually. With easy answers, if you are interested only in GitHub. The GitHub team have provided

Tagged with: , , , ,

Python – ABC analysis for linguists

Some time ago, like a year or so, I have written an article for ABC analysis for linguists for C#. Today, I have decided to do it for Python, just for fun and to check whether the 80/20 rule is valid.

Tagged with: , , , ,

Python – Add data to external files and get JSON data from files

initially, the idea of the article was to write four lines of code, doing the following 2 tasks: uploading data to a given file getting JSON data from file and using it in an application However, as soon as I started, I

Tagged with: , , , , ,

Python – A little bit about lists and operations with them

Python’s lists are powerful. Especially, if you come from the VBA world its like switching to a new car after years of using the old red Ikarus. Thus, I have decided to write a small article about them, just to be

Tagged with: , , , ,

Python – Calculate magic square with python

A magic square is an arrangement of the numbers from 1 to N^2 (N-squared) in an NxN matrix, with each number occurring exactly once, and such that the sum of the entries of any row, any column, or any main

Tagged with: , , , ,

Python – Reduce file path problem (with string slicing and list comprehension)

Some time ago I have started to learn Python. Today, I will present a way to solve the problem “Reduce file path”. The problem is the following – you are given a string and you should reduce it to a meaningful

Tagged with: , , ,

Python – Matrix calculation – Problem

This week I have started to study Python a little more into detail in the courses of HackBulgaria. After end of the second day, the last problem was considered worthy for blogging, as far as it took me about an

Tagged with: , ,

Book Review – The Python Workbook

This weekend I have managed to finish the online version of the book “The Python Workbook”, kindly provided to me by Springer. The book provides you with 174 exercises, which can make you an advanced beginner (if this term exists)

Tagged with: , ,

Book Review – Python Programming Fundamentals

This weekend I have managed to finish the online version of the book “Python Programming Fundamentals”, kindly provided to me by Springer.   In general, I have almost no experience with Python, so I have read the book with the eyes

Tagged with: ,
Top