There are 12 red balls, 15 white balls and 17 black balls in a box. A person extracts all the balls, one at a time. What’s the probability that all the red balls will be extracted before the white balls and that all the white balls will be extracted before the black balls? There are […]
Month: April 2021
Attack the King Side? Close the center!
This week I’ve reached 2000 ELO rapid and 1900 ELO blitz on lichess, and I started playing many games I enjoyed more than usual. This was one of them. 1. Nf3 c5 2. d4 cxd4 3. Nxd4 Nc6 4. Nc3 Nf6 5. b3 e6 6. Bb2 Bb4 7. a3 Ba5 8. e3 O-O Already, a […]
Python Collage and Contour
This set of Python programs is about creating a collage and then adding a contour to it. import numpy as np import matplotlib.pyplot as plt import matplotlib.image as im import random random.seed(123) l = [] a = list(range(1, 37)) random.shuffle(a) for i in a: if i == 35: continue image = im.imread(‘images/collagephoto{}.jpg’.format(i)) l.append(image) l1 = […]