Monty Hall problem: Difference between revisions

(→‎{{header|Python3}}: Small tidy: Make a sub-section of Python. Remove name as page history has author info.)
Line 2,480:
 
 
===Python: Alternative3 version: ===
Another (simpler? in my opinion), way to do this is below, also in python 3:
<lang python>import random
#1 represents a car
Line 2,514:
print("Stay =",stay)
print("Switch = ",switch)</lang>
#Done by Sam Witton 09/04/2014
 
=={{header|R}}==