Pyhton can convert most (all) lists/collections into iterator objects, this is done by calling iter()
ie
num_list = [1, 2 …
Pyhton can convert most (all) lists/collections into iterator objects, this is done by calling iter()
ie
num_list = [1, 2 …
How to package a pythin script or project for distribution. Offical Docs are [here][python_package]. Packaging for pip requires use …
read moreIn the aim of keeping the navigation of the Blog posts clean, I have limited my self to a few …
read moreFirst figure out which theme you are using. List installed themes via:
% pelican-themes -l
simple
notmyidea
pelicanconf.py does not …
read moreI think it improves website usability when they are navigatable via the URL.
For example when viewing Posts under the …
read more^ Matches the beginning of a line
$ Matches the end of the line
. Matches any character …
Using python script to merge pdfs together.
Install package
pip install pypdf
Script:
from pypdf import PdfWriter
pdfs = ['file1.pdf …
On the journey towards publish static site generator blog posts from iPadOS, my next step after installing stash on pythonista …
read moreInstalling stash on pythonista
read morePython example for reading data from a csv file.
import csv
with open(data.csv', newline='') as csvfile:
spamreader = csv …
Create and plot a sinewave in python
read more