Lorem ipsum dolor sit amet

Consectetur adipiscing elit. Zenonis est, inquam, hoc Stoici. Quis non odit sordidos, vanos, leves, futtiles? An vero displicuit ea, quae tributa est animi tanta praestantia? Tum ille: Tu autem cum ipse tantum librorum habeas, quos hic tandem requiris? Duo Reges: constructio interrete. Dolor ergo, id est summum malum, Alt metuetur semper, etiamsi non aderit; Et harum quidem rerum facilis est et expedita distinctio.

Si enim ad populum me vocas

Scio enim esse quosdam, qui quavis lingua philosophari possint; Alterum significari idem, ut si diceretur, officia media omnia aut pleraque. Me igitur ipsum ames oportet, non mea, si veri amici futuri sumus. Videamus igitur sententias eorum, tum ad verba redeamus.

An vero, inquit, quisquam potest probare, quod perceptfum, quod. Nobis Heracleotes ille Dionysius flagitiose descivisse videtur a Stoicis propter oculorum dolorem.

Expectoque quid ad id

Quod quaerebam, respondeas. Si sapiens, ne tum quidem miser, cum ab Oroete, praetore Darei, in crucem actus est. Traditur, inquit, ab Epicuro ratio neglegendi doloris.

kitty

Tecum optime, deinde etiam

Cum mediocri amico. Itaque nostrum est-quod nostrum dico, artis est-ad ea principia, quae accepimus.

Hoc uno captus Erillus

Scientiam summum bonum esse defendit nec rem ullam aliam per se expetendam. Curium putes loqui, interdum ita laudat, ut quid praeterea sit bonum neget se posse ne suspicari quidem. Restincta enim sitis stabilitatem voluptatis habet, inquit, illa autem voluptas ipsius restinctionis in motu est. Pugnant Stoici cum Peripateticis. Nam quibus rebus efficiuntur voluptates, eae non sunt in potestate sapientis.

# The Monty Hall Problem

import random

# Two goats and one car are the possible prizes
prizes = ["Car", "Goat", "Goat"]


def play(number_of_rounds, player_strategy):
	win_count = 0
	for counter in range(number_of_rounds):

		# Randomly place a prize behind each door

		doors = random.sample(prizes, len(prizes))

		# Player picks a door

		player_choice = random.choice([0,1,2])

		# Monty opens a door. It can't be the player's door, nor the one with the car. It's always a goat.

		possible_reveals = [i for i,x in enumerate(doors) if i!=player_choice and doors[i] != "Car"]
		# Also, if there are two possiblw doors to reveal (i.e., the player has picked the door with the car),

		# Monty picks one of them randomly.

		revealed_door = random.choice(possible_reveals)

		if player_strategy == "keep":
			# If the player chooses to keep his choice

			# and there's a car behind his door

			if doors[player_choice] == "Car": win_count +=1 # He wins

		else: # If the player switches to the other remaining door (not his first choice and not the revealed door)

			player_2nd_choice = [i for i,x in enumerate(doors) if i!=player_choice and i != revealed_door][0]
			# and there's a car behind that door

			if doors[player_2nd_choice] == "Car": win_count += 1 # He wins
            
	print("By choosing to %s his chosen door, the player won %s cars in %s games." % (player_strategy, win_count, number_of_rounds))


play(1000000,"switch")
play(1000000,"keep")

Ut non sine causa ex iis memoriae ducta sit disciplina. Ita multo sanguine profuso in laetitia et in victoria est mortuus. Tu autem negas fortem esse quemquam posse, qui dolorem malum putet. Tu vero, inquam, ducas licet, si sequetur; Illud non continuo, ut aeque incontentae. Est autem etiam actio quaedam corporis, quae motus et status naturae congruentis tenet; Est enim effectrix multarum et magnarum voluptatum.