mastodonien.de

fosstodon.org

Zeitpunkt              Nutzer    Delta   Tröts        TNR     Titel                     Version  maxTL
Mi 31.07.2024 00:00:00    61.967       0    3.593.593    58,0 Fosstodon                 4.2.10     500
Di 30.07.2024 00:00:20    61.967      +2    3.590.362    57,9 Fosstodon                 4.2.10     500
Mo 29.07.2024 00:00:12    61.965      -1    3.587.302    57,9 Fosstodon                 4.2.10     500
So 28.07.2024 00:00:15    61.966      +3    3.586.611    57,9 Fosstodon                 4.2.10     500
Sa 27.07.2024 00:00:14    61.963      +5    3.583.830    57,8 Fosstodon                 4.2.10     500
Fr 26.07.2024 00:01:07    61.958      +1    3.580.868    57,8 Fosstodon                 4.2.10     500
Do 25.07.2024 00:00:10    61.957      +1    3.577.506    57,7 Fosstodon                 4.2.10     500
Mi 24.07.2024 00:01:07    61.956       0    3.574.077    57,7 Fosstodon                 4.2.10     500
Di 23.07.2024 00:00:03    61.956      -3    3.570.705    57,6 Fosstodon                 4.2.10     500
Mo 22.07.2024 00:01:10    61.959       0    3.567.825    57,6 Fosstodon                 4.2.10     500

Mi 31.07.2024 14:01

Quick tip:

I needed to parametrise a test with:

0, 0, 0, 0
0, 0, 0, 1
0, 0, 1, 0
0, 0, 1, 1
...
1, 1, 1, 1

Do you think I wrote all of the 16 sequences by hand?!

Heck no.
I used `itertools.product`.
That did the trick.

If you're serious about Python, using `itertools` should come naturally, like muscle memory.

This article should help 👇

mathspp.com/blog/module-iterto

Diagram showing how the code `list(product(range(2), repeat=4)` produces all the 16 tuples of length 4 with the digits 0 and 1, like:
(0, 0, 0, 0)
(0, 0, 0, 1)
(0, 0, 1, 0)
(0, 0, 1, 1)
all the way up to
(1, 1, 1, 1).

Diagram showing how the code `list(product(range(2), repeat=4)` produces all the 16 tuples of length 4 with the digits 0 and 1, like: (0, 0, 0, 0) (0, 0, 0, 1) (0, 0, 1, 0) (0, 0, 1, 1) all the way up to (1, 1, 1, 1).

[Öffentlich] Antw.: 0 Wtrl.: 0 Fav.: 0

Antw. · Weiterl. · Fav. · Lesez. · Pin · Stumm · Löschen