Zeitpunkt Nutzer Delta Tröts TNR Titel Version maxTL 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 +1 3.567.825 57,6 Fosstodon 4.2.10 500 So 21.07.2024 00:01:07 61.958 +1 3.564.861 57,5 Fosstodon 4.2.10 500 Sa 20.07.2024 00:01:10 61.957 +1 3.561.604 57,5 Fosstodon 4.2.10 500 Fr 19.07.2024 13:57:34 61.956 -1 3.558.474 57,4 Fosstodon 4.2.10 500 Do 18.07.2024 00:00:27 61.957 +1 3.553.476 57,4 Fosstodon 4.2.10 500 Mi 17.07.2024 00:01:10 61.956 -1 3.550.157 57,3 Fosstodon 4.2.10 500 Di 16.07.2024 00:00:36 61.957 +6 3.547.999 57,3 Fosstodon 4.2.10 500 Mo 15.07.2024 00:00:01 61.951 0 3.544.794 57,2 Fosstodon 4.2.10 500
Rodrigo 🐍🚀 (@mathsppblog) · 05/2024 · Tröts: 105 · Folger: 102
Mi 24.07.2024 12:30
3. `permutations`
All possible combinations of size `r` in all their possible orderings.
E.g., if I get 2 scoops, how can they be served?
This is a very important question because the flavour at the bottom is eaten last!
4. `product`
Matches up all values of all iterables together.
(Computes the cartesian product of the given iterables.)
E.g., if I can get either 2 or 3 scoops, and if the ice cream can be served on a cup or on a cone, how many different orders are there?
Diagram showing an example usage of `product`. Code: from itertools import product scoop_nums = [2, 3] served_on = ["cup", "cone"] for n, on in product(scoop_nums, served_on): print(f"{n} scoops served on {on}.")
Diagram showing an example usage of `permutations. Code: from itertools import permutations flavours = ["chocolate", "vanilla", "strawberry"] for scoops in permutations(flavours, 2): print(scoops)
[Öffentlich] Antw.: 0 Wtrl.: 0 Fav.: 0