Mind boggling card trick: Difference between revisions

m
(New draft task with python example.)
 
Line 70:
## 4. Order from randomness?
if black_stack.count(Black) == red_stack.count(Red):
print('Yeha! The mathematicianmathematicians assertion is correct.')
else:
print('Whoops - The mathematicianmathematicians (or my card manipulations) are flakey')</lang>
 
A run.
Line 79:
 
Swapping 11
Yeha! The mathematicianmathematicians assertion is correct.</pre>
 
A second run:
Line 86:
 
Swapping 2
Yeha! The mathematicianmathematicians assertion is correct.</pre>
Anonymous user