#! /usr/bin/python # File: bsc.py # Makes 7 transmit switches and 7 noise switches and 7 received switches from Tkinter import * from random import * def flipnoise(k=0): transmit() pass def transmit(): for n in range(N): r[n].set( (e[n].get() + t[n].get())%2 ) pass def makenoise(): for n in range(N): ## get a random bit print n e[n].set( ( random()