- "execution_count": 799,
- "metadata": {
- "collapsed": true
- },
- "outputs": [],
- "source": [
- "class Bank(object):\n",
- " def __init__(self):\n",
- " self.signals = dict(zip(string.ascii_lowercase, [False]*len(string.ascii_lowercase)))"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 800,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "data": {
- "text/plain": [
- "{'a': False,\n",
- " 'b': False,\n",
- " 'c': False,\n",
- " 'd': False,\n",
- " 'e': False,\n",
- " 'f': False,\n",
- " 'g': False,\n",
- " 'h': False,\n",
- " 'i': False,\n",
- " 'j': False,\n",
- " 'k': False,\n",
- " 'l': False,\n",
- " 'm': False,\n",
- " 'n': False,\n",
- " 'o': False,\n",
- " 'p': False,\n",
- " 'q': False,\n",
- " 'r': False,\n",
- " 's': False,\n",
- " 't': False,\n",
- " 'u': False,\n",
- " 'v': False,\n",
- " 'w': False,\n",
- " 'x': False,\n",
- " 'y': False,\n",
- " 'z': False}"
- ]
- },
- "execution_count": 800,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "c1 = Bank()\n",
- "c1.signals"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 801,