summaryrefslogtreecommitdiffstats
path: root/Tools/demo/markov.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-30 22:11:50 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-30 22:11:50 (GMT)
commit856898b3958626d2400e59b53dc134283addc988 (patch)
tree2018f1418921ad20ef0fce86f9e28df09c3e5567 /Tools/demo/markov.py
parenta3fe8e0b9face74e34b938dd657c4048d5f0dadf (diff)
downloadcpython-856898b3958626d2400e59b53dc134283addc988.zip
cpython-856898b3958626d2400e59b53dc134283addc988.tar.gz
cpython-856898b3958626d2400e59b53dc134283addc988.tar.bz2
Harmonize docstrings. Move redemo from Tools/scripts to Tools/demo. Add a README file to Tools/demo.
Diffstat (limited to 'Tools/demo/markov.py')
-rwxr-xr-xTools/demo/markov.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/demo/markov.py b/Tools/demo/markov.py
index 7c08bdb..7a0720f 100755
--- a/Tools/demo/markov.py
+++ b/Tools/demo/markov.py
@@ -1,4 +1,8 @@
-#! /usr/bin/env python3
+#!/usr/bin/env python3
+
+"""
+Markov chain simulation of words or characters.
+"""
class Markov:
def __init__(self, histsize, choice):