Say you have many text files. Your task is to archive the ones which content is 500 signs top. Let’s write the code which creates a new directory. I’m using os module for that.
Let’s draw again. This time we will use matplotlib and numpy to get cos(x).
Let’s calculate your age. And specifically years, months and days. Here’s how:
Here’s how to prepare a simple SQL query using sqlite3 module. The code is following:
Using Python you can check status of the website with a very simple trick. Just check the response of it. You can use following code:
New easy trick today. Let’s see how to print simple matrix using Python random module.
Let’s draw using tkinter. Hyperbola is my choice!
Do you need GUI and don’t know how to start? Just use this and develop for your own needs.
Let’s work with files and directories. Copying specific files between directories is a few lines of Python code job.
I’m having fun drawing random objects with Python. Let’s play around and draw random 3 stars.
It is a fun to work with list using Python.
Todays task: to return first two elements of the list but not changing the list.
Let’s play a bit with randomly generated lists.
The task: Let’s generate random list of 10 elements and count of maximum values in the list.
Here is the basic Tkinter GUI which fetches data.
There is a bunch of text files on your disc. You’d like to load then into a big one file for further processing/analysis. Let’s see how to do it.