<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.rabbibob.com/index.php?action=history&amp;feed=atom&amp;title=Python%3A_ATM</id>
	<title>Python: ATM - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.rabbibob.com/index.php?action=history&amp;feed=atom&amp;title=Python%3A_ATM"/>
	<link rel="alternate" type="text/html" href="https://www.rabbibob.com/index.php?title=Python:_ATM&amp;action=history"/>
	<updated>2026-04-30T09:17:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://www.rabbibob.com/index.php?title=Python:_ATM&amp;diff=1475&amp;oldid=prev</id>
		<title>Rabbi Bob at 11:39, 25 April 2020</title>
		<link rel="alternate" type="text/html" href="https://www.rabbibob.com/index.php?title=Python:_ATM&amp;diff=1475&amp;oldid=prev"/>
		<updated>2020-04-25T11:39:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:39, 25 April 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Made sense!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Made sense!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here&amp;#039;s my first iteration of the semester project, four days after I started it in IDLE:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here&amp;#039;s my first iteration of the semester project, four days after I started it in IDLE&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;Note&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Normally we would not be posting homework in this fashion however this approach should be fairly different than the course itself would have produced had I gone through all of the iteration steps using the course material.&amp;lt;br&amp;gt;&amp;lt;Br&amp;gt;If you use this for your homework, expect your instructor to see the red flags as there are some items here that are well outside of programming 1 and be prepared to be graded accordingly.&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre style=&amp;quot;white-space: pre-wrap;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre style=&amp;quot;white-space: pre-wrap;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot;&gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## |  Description: ATM Project Iteration #1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## |  Description: ATM Project Iteration #1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## |  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## |  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## |  Course: IT &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;261&lt;/del&gt;-1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## |  Course: IT &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;XXX&lt;/ins&gt;-1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## |  Author: Mike Beane&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## |  Author: Mike Beane&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## \---------------------------------------------------------------------------/*&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## \---------------------------------------------------------------------------/*&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mw_RabbiBob_139-wiki_:diff::1.12:old-1354:rev-1475 --&gt;
&lt;/table&gt;</summary>
		<author><name>Rabbi Bob</name></author>
	</entry>
	<entry>
		<id>https://www.rabbibob.com/index.php?title=Python:_ATM&amp;diff=1354&amp;oldid=prev</id>
		<title>Rabbi Bob at 00:34, 16 September 2019</title>
		<link rel="alternate" type="text/html" href="https://www.rabbibob.com/index.php?title=Python:_ATM&amp;diff=1354&amp;oldid=prev"/>
		<updated>2019-09-16T00:34:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://www.rabbibob.com/index.php?title=Python:_ATM&amp;amp;diff=1354&amp;amp;oldid=1353&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Rabbi Bob</name></author>
	</entry>
	<entry>
		<id>https://www.rabbibob.com/index.php?title=Python:_ATM&amp;diff=1353&amp;oldid=prev</id>
		<title>Rabbi Bob: Created page with &quot;I&#039;m auditing part 1 of a Programming class in Python as I have to take part 2 next semester (I have an old transfer credit that covered Programming 1, alas the last time I did...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.rabbibob.com/index.php?title=Python:_ATM&amp;diff=1353&amp;oldid=prev"/>
		<updated>2019-09-15T23:51:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;I&amp;#039;m auditing part 1 of a Programming class in Python as I have to take part 2 next semester (I have an old transfer credit that covered Programming 1, alas the last time I did...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I&amp;#039;m auditing part 1 of a Programming class in Python as I have to take part 2 next semester (I have an old transfer credit that covered Programming 1, alas the last time I did programming in school for school, it was in C and C++).  I don&amp;#039;t think I&amp;#039;ve ever done anything from start to finish in Python outside of print (&amp;quot;Hello world!&amp;quot;), though I&amp;#039;ve looked at the code of others a lot.  My PERL programming comes in handy with this, but I&amp;#039;m still new at it.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s a seven week course and one of the semester projects is to build an ATM prototype.  I was out week one and I picked up the course notes a week ago (week 2).  Tomorrow starts week 3.&lt;br /&gt;
&lt;br /&gt;
To get through the project I had to figure out&lt;br /&gt;
* How Python works with lists&lt;br /&gt;
** This wasn&amp;#039;t called for in the project, but it made things so much easier for the account setup.&lt;br /&gt;
* console output&lt;br /&gt;
** Why all the () stuff?&lt;br /&gt;
* if, elsif, else&lt;br /&gt;
** elif???  &lt;br /&gt;
* casting types&lt;br /&gt;
** int\float, etc - I still have some basic trouble with this, mostly around remembering what I was hoping to do&lt;br /&gt;
* format output in columns&lt;br /&gt;
** not called for, I just don&amp;#039;t like ugly columns&lt;br /&gt;
* functions&lt;br /&gt;
** I actually like Python&amp;#039;s handling of functions, though I didn&amp;#039;t look into passing information in an out, nor did I look into local vs global variables.&lt;br /&gt;
* Loops&lt;br /&gt;
** Made sense!&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s my first iteration of the semester project, four days after I started it in IDLE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap; &lt;br /&gt;
 white-space: -moz-pre-wrap; &lt;br /&gt;
 white-space: -pre-wrap; &lt;br /&gt;
 white-space: -o-pre-wrap; &lt;br /&gt;
 word-wrap: break-word;&amp;quot;&amp;gt;&lt;br /&gt;
#################################################################################&lt;br /&gt;
## /---------------------------------------------------------------------------\*&lt;br /&gt;
## |  Program: ATM&lt;br /&gt;
## |  Version: 0.0.1&lt;br /&gt;
## |  Language: 3.7.4&lt;br /&gt;
## | &lt;br /&gt;
## |  Description: ATM Project Iteration #1&lt;br /&gt;
## | &lt;br /&gt;
## |  Course: IT 261-1&lt;br /&gt;
## |  Author: Mike Beane&lt;br /&gt;
## \---------------------------------------------------------------------------/*&lt;br /&gt;
## Changelog&lt;br /&gt;
## Date				Description&lt;br /&gt;
## -----			-------------&lt;br /&gt;
## 9/11/2019                    Program Setup - Created Lists&lt;br /&gt;
##                              Basic account input created and sanity test&lt;br /&gt;
## 9/12/2019                    Added PIN check (simple)&lt;br /&gt;
## 9/13/2019                    Added WHILE LOOP screen clear: cls()&lt;br /&gt;
## 9/14/2019                    Added Account # loop and testing to see if the&lt;br /&gt;
##                                  value is in the list or not or input is&lt;br /&gt;
##                                  valid by length.&lt;br /&gt;
##                              Added help() to list account variables (this&lt;br /&gt;
##                                  is more for you than for me, it would NOT&lt;br /&gt;
##                                  exist in a real program.  Instead there&lt;br /&gt;
##                                  would be Post-IT notes for this information.&lt;br /&gt;
##                              Updated PIN check (advanced and now with fail!)&lt;br /&gt;
##                              Created functions for repetitive things&lt;br /&gt;
##                              Added Deposit (simple) - needs sanity checks&lt;br /&gt;
## 9/15/2019                    Updated Deposit checks&lt;br /&gt;
##                              Added Withdrawal routine and checks&lt;br /&gt;
#################################################################################&lt;br /&gt;
# Variables&lt;br /&gt;
debug = 1&lt;br /&gt;
PIN_Max_Attempts=3&lt;br /&gt;
#################################################################################&lt;br /&gt;
## System Variables - Do Not Edit Below This Line ###############################&lt;br /&gt;
#################################################################################&lt;br /&gt;
## Function - Clear Screen cludge&lt;br /&gt;
def cls():&lt;br /&gt;
    i = 0&lt;br /&gt;
    while i &amp;lt; 39:               # Default window size seems to be 40 lines&lt;br /&gt;
        print (&amp;quot; &amp;quot;)             # Avoiding making sys() calls and just &lt;br /&gt;
        i += 1                  # Carriage returning the screen clear&lt;br /&gt;
        &lt;br /&gt;
## Function - Output Account Lists if &amp;quot;?&amp;quot; is used in the Account input section&lt;br /&gt;
def help():&lt;br /&gt;
    cls()&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot;|***************** Help: Account Info *****************|&amp;quot;)&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot;Account Pin  Name &amp;quot;)&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
    i=0&lt;br /&gt;
    while i &amp;lt; len(accounts):&lt;br /&gt;
        print (&amp;quot;&amp;quot;+accounts[i]+&amp;quot; &amp;quot;+pins[i]+&amp;quot; &amp;quot;+users[i])&lt;br /&gt;
        i += 1&lt;br /&gt;
    print (&amp;quot; &amp;quot;)&lt;br /&gt;
    print (&amp;quot; &amp;quot;)&lt;br /&gt;
    print (&amp;quot;** Realistically this wouldn&amp;#039;t be here **&amp;quot;)&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
def header():&lt;br /&gt;
    cls()&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot; Name                           Account &amp;quot;)&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot; &amp;quot;+users[account_position]+&amp;quot;                  &amp;quot;+User_Account)&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
def main_menu():&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot;Options:  &amp;quot;)&lt;br /&gt;
    print (&amp;quot;         1. Fund Balance Inquiry&amp;quot;)&lt;br /&gt;
    print (&amp;quot;         2. Deposit&amp;quot;)&lt;br /&gt;
    print (&amp;quot;         3. Withdraw &amp;quot;)&lt;br /&gt;
    print (&amp;quot;         4. Quit&amp;quot;)&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
def balance_display():&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot;Balance:  &amp;quot;)&lt;br /&gt;
    print (&amp;quot;            Checking: $&amp;quot;+ str(BALANCE_Checking))&lt;br /&gt;
    print (&amp;quot;         Savings [1]: $&amp;quot;+ str(BALANCE_Savings_1))&lt;br /&gt;
    print (&amp;quot;         Savings [2]: $&amp;quot;+ str(BALANCE_Savings_2))&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
def ledger():&lt;br /&gt;
    table_data = [&lt;br /&gt;
    # https://docs.python.org/2.7/library/string.html#format-specification-mini-language&lt;br /&gt;
    # https://stackoverflow.com/questions/9989334/create-nice-column-output-in-python&lt;br /&gt;
    [&amp;#039; &amp;#039;, &amp;#039;STARTING&amp;#039;,&amp;#039;TOTAL&amp;#039;,&amp;#039;TOTAL&amp;#039;,&amp;#039;ENDING&amp;#039;],&lt;br /&gt;
    [&amp;#039;TYPE&amp;#039;, &amp;#039;BALANCE&amp;#039;,&amp;#039;DEPOSITS&amp;#039;,&amp;#039;WITHDRAWLS&amp;#039;,&amp;#039;BALANCE&amp;#039;],&lt;br /&gt;
    [&amp;#039;----------&amp;#039;,&amp;#039;----------&amp;#039;,&amp;#039;----------&amp;#039;,&amp;#039;----------&amp;#039;,&amp;#039;----------&amp;#039;],&lt;br /&gt;
    [&amp;#039;Checking&amp;#039;, str(STARTING_BALANCE_CHECKING), DEPOSIT_TALLY_CHECKING, WITHDRAWAL_TALLY_CHECKING, BALANCE_Checking],&lt;br /&gt;
    [&amp;#039;Savings[1]&amp;#039;, str(STARTING_BALANCE_Savings_1), DEPOSIT_TALLY_SAVINGS_1, WITHDRAWAL_TALLY_SAVINGS_1, BALANCE_Savings_1],&lt;br /&gt;
    [&amp;#039;Savings[2]&amp;#039;, str(STARTING_BALANCE_Savings_2), DEPOSIT_TALLY_SAVINGS_2, WITHDRAWAL_TALLY_SAVINGS_2, BALANCE_Savings_2],&lt;br /&gt;
    [&amp;#039;----------&amp;#039;,&amp;#039;----------&amp;#039;,&amp;#039;----------&amp;#039;,&amp;#039;----------&amp;#039;,&amp;#039;----------&amp;#039;],&lt;br /&gt;
    [&amp;#039;TOTALS&amp;#039;,&amp;#039;&amp;#039;,DEPOSIT_TALLY_CHECKING+DEPOSIT_TALLY_SAVINGS_1+DEPOSIT_TALLY_SAVINGS_2,WITHDRAWAL_TALLY_CHECKING+WITHDRAWAL_TALLY_SAVINGS_1+WITHDRAWAL_TALLY_SAVINGS_2,&amp;#039;&amp;#039;,]&lt;br /&gt;
    ]&lt;br /&gt;
    for row in table_data:&lt;br /&gt;
        print(&amp;quot;{: &amp;gt;10} {: &amp;gt;10} {: &amp;gt;10} {: &amp;gt;10} {: &amp;gt;10}&amp;quot;.format(*row))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def startup():&lt;br /&gt;
    cls()&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot;-------A.T.M.-------------------------------------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot;---------NOTE: All Input Via Numeric Keypad-------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
    print (&amp;quot;|************|                            |************|&amp;quot;)&lt;br /&gt;
    print (&amp;quot;|************|    [ 7 ]  [ 8 ]  [ 9 ]     |************|&amp;quot;)&lt;br /&gt;
    print (&amp;quot;|************|                            |************|&amp;quot;)&lt;br /&gt;
    print (&amp;quot;|************|    [ 4 ]  [ 5 ]  [ 6 ]     |************|&amp;quot;)&lt;br /&gt;
    print (&amp;quot;|************|                            |************|&amp;quot;)&lt;br /&gt;
    print (&amp;quot;|************|    [ 1 ]  [ 2 ]  [ 3 ]     |************|&amp;quot;)&lt;br /&gt;
    print (&amp;quot;|************|                            |************|&amp;quot;)&lt;br /&gt;
    print (&amp;quot;|************|    [ 0 ]  [ . ]  [ ENTER ] |************|&amp;quot;)&lt;br /&gt;
    print (&amp;quot;|************|                            |************|&amp;quot;)&lt;br /&gt;
    print (&amp;quot;--------------------------------------------------------&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#################################################################################&lt;br /&gt;
## List Setup - User Accounts,Pins,Names&lt;br /&gt;
## Usage:&lt;br /&gt;
##          List position dictates linkage between UA-&amp;gt;Pin-&amp;gt;Name&lt;br /&gt;
##          Example:    Entering 7654321 will match at position 3 below&lt;br /&gt;
##                      and will correspond with PIN 4567 and USER Hank Simpson&lt;br /&gt;
#################################################################################&lt;br /&gt;
## Ref: https://www.w3schools.com/python/python_arrays.asp&lt;br /&gt;
#### Python doesn&amp;#039;t do Arrays&lt;br /&gt;
#### It does Lists. Let&amp;#039;s do Lists&lt;br /&gt;
#################################################################################&lt;br /&gt;
accounts = [&amp;quot;1234567&amp;quot;,&amp;quot;8675309&amp;quot;,&amp;quot;6666666&amp;quot;,&amp;quot;7654321&amp;quot;,&amp;quot;5551212&amp;quot;]&lt;br /&gt;
pins = [&amp;quot;1234&amp;quot;,&amp;quot;2345&amp;quot;,&amp;quot;3456&amp;quot;,&amp;quot;4567&amp;quot;,&amp;quot;5678&amp;quot;]&lt;br /&gt;
users = [&amp;quot;Brock Shumway&amp;quot;,&amp;quot;Gale Winds&amp;quot;,&amp;quot;Gustavo Adolpho&amp;quot;,&amp;quot;Hank Simpsons&amp;quot;,&amp;quot;Hector Lizondo&amp;quot;]&lt;br /&gt;
total_accounts = len(accounts)&lt;br /&gt;
total_pins = len(pins)&lt;br /&gt;
total_users = len(users)&lt;br /&gt;
&lt;br /&gt;
STARTING_BALANCE_CHECKING = 500&lt;br /&gt;
STARTING_BALANCE_Savings_1 = 1500&lt;br /&gt;
STARTING_BALANCE_Savings_2 = 5000&lt;br /&gt;
&lt;br /&gt;
BALANCE_Checking = STARTING_BALANCE_CHECKING&lt;br /&gt;
BALANCE_Savings_1 = STARTING_BALANCE_Savings_1&lt;br /&gt;
BALANCE_Savings_2 = STARTING_BALANCE_Savings_2&lt;br /&gt;
&lt;br /&gt;
DEPOSIT_TALLY_CHECKING = 0&lt;br /&gt;
DEPOSIT_TALLY_SAVINGS_1 = 0&lt;br /&gt;
DEPOSIT_TALLY_SAVINGS_2 = 0&lt;br /&gt;
&lt;br /&gt;
WITHDRAWAL_TALLY_CHECKING = 0&lt;br /&gt;
WITHDRAWAL_TALLY_SAVINGS_1 = 0&lt;br /&gt;
WITHDRAWAL_TALLY_SAVINGS_2 = 0&lt;br /&gt;
&lt;br /&gt;
DEPOSIT_AMOUNT = 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#################################################################################    &lt;br /&gt;
## User Input: Account&lt;br /&gt;
#### http://introtopython.org/while_input.html&lt;br /&gt;
#################################################################################&lt;br /&gt;
cls()&lt;br /&gt;
#print (&amp;quot;#####&amp;quot;)&lt;br /&gt;
startup()&lt;br /&gt;
While_Account_Input=0&lt;br /&gt;
&lt;br /&gt;
while While_Account_Input == 0:&lt;br /&gt;
    User_Account = input(&amp;quot;Please enter your seven digit Account Number or 0 to exit: &amp;quot;)&lt;br /&gt;
    # https://snakify.org/en/lessons/if_then_else_conditions/&lt;br /&gt;
    if User_Account == &amp;#039;0&amp;#039;:&lt;br /&gt;
        print (&amp;quot;You entered 0, exiting program.&amp;quot;)&lt;br /&gt;
        quit()&lt;br /&gt;
    elif len(User_Account) &amp;lt; 7:&lt;br /&gt;
        if User_Account == &amp;quot;?&amp;quot;:&lt;br /&gt;
           help()&lt;br /&gt;
        else:&lt;br /&gt;
           print (&amp;quot;The entered string was too short: &amp;quot; + str(len(User_Account)))&lt;br /&gt;
    elif len(User_Account) &amp;gt; 7:&lt;br /&gt;
        print (&amp;quot;The entered string was too long: &amp;quot; + str(len(User_Account)))&lt;br /&gt;
    else:&lt;br /&gt;
        print (&amp;quot;The entered string was correct: &amp;quot; + str(len(User_Account)))&lt;br /&gt;
        #########################################################&lt;br /&gt;
        ### Length was correct, but is it a valid account?&lt;br /&gt;
        ### Check &amp;#039;accounts&amp;#039; list to see if typed in value exists&lt;br /&gt;
        ### We really don&amp;#039;t care if the user put in alpha&lt;br /&gt;
        ### characters, it will fail the lookup.&lt;br /&gt;
        #########################################################&lt;br /&gt;
        if User_Account not in accounts:&lt;br /&gt;
            print (&amp;quot;Account not found&amp;quot;)&lt;br /&gt;
        else:&lt;br /&gt;
            While_Account_Input=1&lt;br /&gt;
&lt;br /&gt;
#####################################################&lt;br /&gt;
## We have some valid input -&amp;gt; Find the position&lt;br /&gt;
#####################################################&lt;br /&gt;
            &lt;br /&gt;
account_position = accounts.index(User_Account)&lt;br /&gt;
&lt;br /&gt;
####################################################&lt;br /&gt;
## debug to dump out known elements to screen&lt;br /&gt;
####################################################&lt;br /&gt;
&lt;br /&gt;
if debug == 1:&lt;br /&gt;
    print (&amp;quot;Debugging Enabled&amp;quot;)&lt;br /&gt;
    print (&amp;quot;Total Accounts: &amp;quot; + str(total_accounts))&lt;br /&gt;
    print (&amp;quot;Total Pins: &amp;quot; + str(total_pins))&lt;br /&gt;
    print (&amp;quot;Total Users: &amp;quot; + str(total_users))&lt;br /&gt;
    &lt;br /&gt;
    print (&amp;quot;Entered Account: &amp;quot; +User_Account)&lt;br /&gt;
    print (&amp;quot;Account Position: &amp;quot; + str(account_position))&lt;br /&gt;
    print (&amp;quot;Pin at Pos &amp;quot; + str(account_position) + &amp;quot;: &amp;quot; + pins[account_position])&lt;br /&gt;
    print (&amp;quot;User at Pos &amp;quot; + str(account_position) + &amp;quot;: &amp;quot; + users[account_position])&lt;br /&gt;
&lt;br /&gt;
cls()&lt;br /&gt;
&lt;br /&gt;
####################################################&lt;br /&gt;
# PIN Check&lt;br /&gt;
####################################################&lt;br /&gt;
While_PIN_Input=0&lt;br /&gt;
PIN_Input_Fail=0&lt;br /&gt;
&lt;br /&gt;
while While_PIN_Input==0:&lt;br /&gt;
    print (&amp;quot;Account: &amp;quot; +User_Account)&lt;br /&gt;
    User_PIN = input(&amp;quot;Please enter your four digit PIN Number or 0 to exit: &amp;quot;)&lt;br /&gt;
    # https://snakify.org/en/lessons/if_then_else_conditions/&lt;br /&gt;
    if User_PIN == &amp;#039;0&amp;#039;:&lt;br /&gt;
        print (&amp;quot;You entered 0, exiting program.&amp;quot;)&lt;br /&gt;
        quit()&lt;br /&gt;
    elif len(User_PIN) &amp;lt; 4:&lt;br /&gt;
        if User_PIN == &amp;quot;?&amp;quot;:&lt;br /&gt;
           help()&lt;br /&gt;
        else:&lt;br /&gt;
           print (&amp;quot;The entered string was too short: &amp;quot; + str(len(User_PIN)))&lt;br /&gt;
    elif len(User_PIN) &amp;gt; 4:&lt;br /&gt;
        print (&amp;quot;The entered string was too long: &amp;quot; + str(len(User_PIN)))&lt;br /&gt;
    else:&lt;br /&gt;
        print (&amp;quot;The entered string was correct: &amp;quot; + str(len(User_PIN)))&lt;br /&gt;
        #########################################################&lt;br /&gt;
        ### Length was correct, but is it a valid match for ?&lt;br /&gt;
        ### Check &amp;#039;accounts&amp;#039; list to see if typed in value exists&lt;br /&gt;
        ### We really don&amp;#039;t care if the user put in alpha&lt;br /&gt;
        ### characters, it will fail the lookup.&lt;br /&gt;
        #########################################################&lt;br /&gt;
        if User_PIN == pins[account_position]:&lt;br /&gt;
            While_PIN_Input=1&lt;br /&gt;
        else:&lt;br /&gt;
            PIN_Input_Fail=PIN_Input_Fail+1&lt;br /&gt;
            if PIN_Input_Fail == PIN_Max_Attempts:&lt;br /&gt;
                cls()&lt;br /&gt;
                print (&amp;quot;*****************************************************************&amp;quot;)&lt;br /&gt;
                print (&amp;quot;You have failed to enter a correct PIN.  Please contact the bank.&amp;quot;)&lt;br /&gt;
                print (&amp;quot;*****************************************************************&amp;quot;)&lt;br /&gt;
                EXIT = input(&amp;quot;Press ENTER to exit&amp;quot;)&lt;br /&gt;
                quit()&lt;br /&gt;
            else:       &lt;br /&gt;
                print (&amp;quot;Incorrect PIN.  Attempt &amp;quot;+str(PIN_Input_Fail)+&amp;quot; of &amp;quot;+str(PIN_Max_Attempts))&lt;br /&gt;
                &lt;br /&gt;
############################################################&lt;br /&gt;
## If you are here, you are logged in&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################################################&lt;br /&gt;
# Two level while&lt;br /&gt;
## Level 1: main_menu area&lt;br /&gt;
#### Level 2: each individual option&lt;br /&gt;
############################################################&lt;br /&gt;
&lt;br /&gt;
WHILE_MAIN_MENU = 0&lt;br /&gt;
while WHILE_MAIN_MENU == 0:&lt;br /&gt;
    cls()&lt;br /&gt;
    header()&lt;br /&gt;
    main_menu()&lt;br /&gt;
    main_menu_input = input (&amp;quot;Enter your choice: &amp;quot;)&lt;br /&gt;
    print (main_menu_input)&lt;br /&gt;
    if main_menu_input == &amp;#039;4&amp;#039;:&lt;br /&gt;
        print (&amp;quot;Selected Exit...&amp;quot;)&lt;br /&gt;
        WHILE_MAIN_MENU = 1&lt;br /&gt;
    elif main_menu_input == &amp;#039;1&amp;#039;:&lt;br /&gt;
        print (&amp;quot;Selected Balance Inquiry...&amp;quot;)&lt;br /&gt;
        cls()&lt;br /&gt;
        header()&lt;br /&gt;
        balance_display()&lt;br /&gt;
        EXIT = input(&amp;quot;Press ENTER to return to Main Menu... &amp;quot;)&lt;br /&gt;
    elif main_menu_input == &amp;#039;?&amp;#039;:&lt;br /&gt;
        print (&amp;quot;Selected Ledger Inquiry...&amp;quot;)&lt;br /&gt;
        cls()&lt;br /&gt;
        header()&lt;br /&gt;
        ledger()&lt;br /&gt;
        EXIT = input(&amp;quot;Press ENTER to return to Main Menu... &amp;quot;)&lt;br /&gt;
    elif main_menu_input == &amp;#039;2&amp;#039;:&lt;br /&gt;
    ################################### DEPOSITS START #####################################&lt;br /&gt;
        print (&amp;quot;Selected Deposits...&amp;quot;)&lt;br /&gt;
        WHILE_DEPOSITS_MENU = 0&lt;br /&gt;
        while WHILE_DEPOSITS_MENU == 0:&lt;br /&gt;
            cls()&lt;br /&gt;
            header()&lt;br /&gt;
            ########################### How much to deposit?&lt;br /&gt;
            print (&amp;quot;How much would you like to deposit?&amp;quot;) &lt;br /&gt;
            DEPOSIT_AMOUNT = input (&amp;quot;[0 to return, max deposit is $1000]: &amp;quot;)&lt;br /&gt;
            if DEPOSIT_AMOUNT == &amp;#039;0&amp;#039;:&lt;br /&gt;
                print (&amp;quot;!&amp;quot;)&lt;br /&gt;
                WHILE_DEPOSITS_MENU=1&lt;br /&gt;
            elif float(DEPOSIT_AMOUNT) &amp;gt; 1000:&lt;br /&gt;
                BAD_ENTRY = input (&amp;quot;Max entry is $1000. Press ENTER to continue&amp;quot;)&lt;br /&gt;
                print (&amp;quot;!22&amp;quot;)&lt;br /&gt;
                WHILE_DEPOSITS_MENU=1&lt;br /&gt;
            else:&lt;br /&gt;
                ################################################&lt;br /&gt;
                ## **** !!!!!!!! NEED TO ADD A TALLY SYSTEM FOR DEPOSITS&lt;br /&gt;
                ## DONE !!!!!!!! NEED TO ADD A 0 &amp;lt;&amp;gt; 1000 CHECK&lt;br /&gt;
                ################################################&lt;br /&gt;
                print (&amp;quot; 1. Checking&amp;quot;)&lt;br /&gt;
                print (&amp;quot; 2. Savings [1]&amp;quot;)&lt;br /&gt;
                print (&amp;quot; 3. Savings [2]&amp;quot;)&lt;br /&gt;
                print (&amp;quot; 4. Return to Menu [2]&amp;quot;)&lt;br /&gt;
                ################################################&lt;br /&gt;
                DEPOSIT_SELECTION = input (&amp;quot;Which acount would you like to make a deposit into? &amp;quot;)&lt;br /&gt;
                if DEPOSIT_SELECTION == &amp;#039;4&amp;#039;:&lt;br /&gt;
                    WHILE_DEPOSITS_MENU = 1&lt;br /&gt;
                elif DEPOSIT_SELECTION == &amp;#039;1&amp;#039;:&lt;br /&gt;
                    BALANCE_Checking=float(DEPOSIT_AMOUNT) + float(BALANCE_Checking)&lt;br /&gt;
                    DEPOSIT_TALLY_CHECKING = float(DEPOSIT_TALLY_CHECKING) + float(DEPOSIT_AMOUNT)&lt;br /&gt;
                    DEPOSIT_AMOUNT = 0&lt;br /&gt;
                    WHILE_DEPOSITS_MENU = 1&lt;br /&gt;
                elif DEPOSIT_SELECTION == &amp;#039;2&amp;#039;:&lt;br /&gt;
                    BALANCE_Savings_1=float(DEPOSIT_AMOUNT) + float(BALANCE_Savings_1)&lt;br /&gt;
                    DEPOSIT_TALLY_SAVINGS_1 = float(DEPOSIT_TALLY_SAVINGS_1) + float(DEPOSIT_AMOUNT)&lt;br /&gt;
                    DEPOSIT_AMOUNT = 0&lt;br /&gt;
                    WHILE_DEPOSITS_MENU = 1&lt;br /&gt;
                elif DEPOSIT_SELECTION == &amp;#039;3&amp;#039;:&lt;br /&gt;
                    BALANCE_Savings_2=float(DEPOSIT_AMOUNT) + float(BALANCE_Savings_2)&lt;br /&gt;
                    DEPOSIT_TALLY_SAVINGS_2 = float(DEPOSIT_TALLY_SAVINGS_2) + float(DEPOSIT_AMOUNT)&lt;br /&gt;
                    DEPOSIT_AMOUNT = 0&lt;br /&gt;
                    WHILE_DEPOSITS_MENU = 1&lt;br /&gt;
    ################################### DEPOSITS END #####################################&lt;br /&gt;
&lt;br /&gt;
    elif main_menu_input == &amp;#039;3&amp;#039;:&lt;br /&gt;
    ################################### WITHDRAWALS START #####################################&lt;br /&gt;
        print (&amp;quot;Selected Deposits...&amp;quot;)&lt;br /&gt;
        WHILE_WITHDRAWALS_MENU = 0&lt;br /&gt;
        while WHILE_WITHDRAWALS_MENU == 0:&lt;br /&gt;
            cls()&lt;br /&gt;
            header()&lt;br /&gt;
            ########################### How much to withdraw? ###############################&lt;br /&gt;
            # Withdraw amounts can only be $20, $40, $60, $80, or $100.&lt;br /&gt;
            # Cannot withdraw more money than what exists in the account.&lt;br /&gt;
            # Total withdraws from a single account cannot exceed $300.&lt;br /&gt;
            # Total withdraws from ALL accounts cannot exceed $750.&lt;br /&gt;
            #################################################################################&lt;br /&gt;
            WITHDRAWAL_AMOUNT = 0  #Reset&lt;br /&gt;
            ##################################################################################&lt;br /&gt;
            ######### Total withdraws from ALL accounts cannot exceed $750.&lt;br /&gt;
            ######### Let&amp;#039;s just check it as it comes into the menu, if you don&amp;#039;t have the $,&lt;br /&gt;
            ######### don&amp;#039;t waste time going through the tree&lt;br /&gt;
            ##################################################################################&lt;br /&gt;
            if WITHDRAWAL_TALLY_CHECKING+WITHDRAWAL_TALLY_SAVINGS_1+WITHDRAWAL_TALLY_SAVINGS_2+20 &amp;gt; 750:&lt;br /&gt;
                print (&amp;quot;Any more transactions will exceed your daily withdrawal limit.&amp;quot;)&lt;br /&gt;
                EXIT = input(&amp;quot;Press ENTER to return to Main Menu... &amp;quot;)&lt;br /&gt;
                WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
            else:            &lt;br /&gt;
                print (&amp;quot;------------------------------------&amp;quot;) &lt;br /&gt;
                print (&amp;quot; 1. $20      4. $80&amp;quot;)&lt;br /&gt;
                print (&amp;quot; 2. $40      5. $100&amp;quot;)&lt;br /&gt;
                print (&amp;quot; 3. $60      0. Return to Menu&amp;quot;)&lt;br /&gt;
                print (&amp;quot;------------------------------------&amp;quot;) &lt;br /&gt;
                WITHDRAWAL_AMOUNT_SELECTION = input (&amp;quot;How much would you like to withdraw? &amp;quot;)&lt;br /&gt;
&lt;br /&gt;
                if WITHDRAWAL_AMOUNT_SELECTION == &amp;#039;0&amp;#039;:&lt;br /&gt;
                    print (&amp;quot;!&amp;quot;)&lt;br /&gt;
                    WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
                elif WITHDRAWAL_AMOUNT_SELECTION == &amp;#039;1&amp;#039;:&lt;br /&gt;
                    WITHDRAWAL_AMOUNT = 20&lt;br /&gt;
                elif WITHDRAWAL_AMOUNT_SELECTION == &amp;#039;2&amp;#039;:&lt;br /&gt;
                    WITHDRAWAL_AMOUNT = 40&lt;br /&gt;
                elif WITHDRAWAL_AMOUNT_SELECTION == &amp;#039;3&amp;#039;:&lt;br /&gt;
                    WITHDRAWAL_AMOUNT = 60&lt;br /&gt;
                elif WITHDRAWAL_AMOUNT_SELECTION == &amp;#039;4&amp;#039;:&lt;br /&gt;
                    WITHDRAWAL_AMOUNT = 80&lt;br /&gt;
                elif WITHDRAWAL_AMOUNT_SELECTION == &amp;#039;5&amp;#039;:&lt;br /&gt;
                    WITHDRAWAL_AMOUNT = 100&lt;br /&gt;
                else:&lt;br /&gt;
                    WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
            if WHILE_WITHDRAWALS_MENU == 0:&lt;br /&gt;
                ######### Total withdraws from ALL accounts cannot exceed $750.&lt;br /&gt;
                if WITHDRAWAL_TALLY_CHECKING+WITHDRAWAL_TALLY_SAVINGS_1+WITHDRAWAL_TALLY_SAVINGS_2+WITHDRAWAL_AMOUNT &amp;gt; 750:&lt;br /&gt;
                    print (&amp;quot;This transaction will exceed your daily withdrawal limit.&amp;quot;)&lt;br /&gt;
                    EXIT = input(&amp;quot;Press ENTER to return to Main Menu... &amp;quot;)&lt;br /&gt;
                    WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
                    &lt;br /&gt;
            if WHILE_WITHDRAWALS_MENU == 0:    &lt;br /&gt;
                if debug == 1:&lt;br /&gt;
                    ledger()&lt;br /&gt;
                ##### WHICH ACCOUNT? ######&lt;br /&gt;
                print (&amp;quot;------------------------------------&amp;quot;) &lt;br /&gt;
                print (&amp;quot; 1: CHECKING &amp;quot;)&lt;br /&gt;
                print (&amp;quot; 2: SAVINGS[1]&amp;quot;)&lt;br /&gt;
                print (&amp;quot; 3: SAVINGS[2]&amp;quot;)&lt;br /&gt;
                print (&amp;quot; &amp;quot;)&lt;br /&gt;
                print (&amp;quot; 0: Return to Menu&amp;quot;)&lt;br /&gt;
                print (&amp;quot;------------------------------------&amp;quot;) &lt;br /&gt;
                WITHDRAWAL_SELECTION = input (&amp;quot;Which account would you like to make a withdrawal from? &amp;quot;)&lt;br /&gt;
                if WITHDRAWAL_SELECTION == &amp;#039;0&amp;#039;:&lt;br /&gt;
                    print (&amp;quot;!&amp;quot;)&lt;br /&gt;
                    WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
                # Cannot withdraw more money than what exists in the account.&lt;br /&gt;
                # Total withdraws from a single account cannot exceed $300.&lt;br /&gt;
                elif WITHDRAWAL_SELECTION == &amp;#039;1&amp;#039;:&lt;br /&gt;
                    print (&amp;quot;CHECKING&amp;quot;)&lt;br /&gt;
                    if WITHDRAWAL_AMOUNT + WITHDRAWAL_TALLY_CHECKING &amp;gt; 300:&lt;br /&gt;
                        print (&amp;quot;You have exceeded your daily individual account withdrawal limit.&amp;quot;)&lt;br /&gt;
                        EXIT = input(&amp;quot;Press ENTER to return to Main Menu... &amp;quot;)&lt;br /&gt;
                        WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
                    elif BALANCE_Checking - WITHDRAWAL_AMOUNT &amp;lt; 0:&lt;br /&gt;
                        print (&amp;quot;Insufficient funds..&amp;quot;)&lt;br /&gt;
                        EXIT = input(&amp;quot;Press ENTER to return to Main Menu... &amp;quot;)&lt;br /&gt;
                        WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
                    else:&lt;br /&gt;
                        WITHDRAWAL_TALLY_CHECKING = WITHDRAWAL_TALLY_CHECKING+WITHDRAWAL_AMOUNT&lt;br /&gt;
                        BALANCE_Checking = BALANCE_Checking-WITHDRAWAL_AMOUNT&lt;br /&gt;
                elif WITHDRAWAL_SELECTION == &amp;#039;2&amp;#039;:&lt;br /&gt;
                    print (&amp;quot;SAVINGS[1]&amp;quot;)&lt;br /&gt;
                    if WITHDRAWAL_AMOUNT + WITHDRAWAL_TALLY_SAVINGS_1 &amp;gt; 300:&lt;br /&gt;
                        print (&amp;quot;You have exceeded your daily individual account withdrawal limit.&amp;quot;)&lt;br /&gt;
                        EXIT = input(&amp;quot;Press ENTER to return to Main Menu... &amp;quot;)&lt;br /&gt;
                        WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
                    elif BALANCE_Savings_1 - WITHDRAWAL_AMOUNT &amp;lt; 0:&lt;br /&gt;
                        print (&amp;quot;Insufficient funds..&amp;quot;)&lt;br /&gt;
                        EXIT = input(&amp;quot;Press ENTER to return to Main Menu... &amp;quot;)&lt;br /&gt;
                        WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
                    else:&lt;br /&gt;
                        WITHDRAWAL_TALLY_SAVINGS_1 = WITHDRAWAL_TALLY_SAVINGS_1+WITHDRAWAL_AMOUNT&lt;br /&gt;
                        BALANCE_Savings_1 = BALANCE_Savings_1-WITHDRAWAL_AMOUNT&lt;br /&gt;
                elif WITHDRAWAL_SELECTION == &amp;#039;3&amp;#039;:&lt;br /&gt;
                    print (&amp;quot;SAVINGS[1]&amp;quot;)&lt;br /&gt;
                    if WITHDRAWAL_AMOUNT + WITHDRAWAL_TALLY_SAVINGS_2 &amp;gt; 300:&lt;br /&gt;
                        print (&amp;quot;You have exceeded your daily individual account withdrawal limit.&amp;quot;)&lt;br /&gt;
                        EXIT = input(&amp;quot;Press ENTER to return to Main Menu... &amp;quot;)&lt;br /&gt;
                        WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
                    elif BALANCE_Savings_2 - WITHDRAWAL_AMOUNT &amp;lt; 0:&lt;br /&gt;
                        print (&amp;quot;Insufficient funds..&amp;quot;)&lt;br /&gt;
                        EXIT = input(&amp;quot;Press ENTER to return to Main Menu... &amp;quot;)&lt;br /&gt;
                        WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
                    else:&lt;br /&gt;
                        WITHDRAWAL_TALLY_SAVINGS_2 = WITHDRAWAL_TALLY_SAVINGS_2+WITHDRAWAL_AMOUNT&lt;br /&gt;
                        BALANCE_Savings_2 = BALANCE_Savings_2-WITHDRAWAL_AMOUNT&lt;br /&gt;
                else:&lt;br /&gt;
                    WHILE_WITHDRAWALS_MENU=1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
#### If you&amp;#039;re here, you exited the main_menu&lt;br /&gt;
ledger()&lt;br /&gt;
print (&amp;quot;Thank you and have a good day.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rabbi Bob</name></author>
	</entry>
</feed>