Save this video free

Python (Fall 2026) Module 7-1: Reviewing the ATM Assignment

Bill Moseley, Ph.D. - Computer Science Educator · 20:52 · Watch on YouTube

Python (Fall 2026) Module 7-1: Reviewing the ATM Assignment Watch on YouTube →

Overview

Bill Moseley reviews a Python ATM assignment built around checking and savings balance variables, a `while True` transaction loop, and menu choices for depositing, withdrawing, or checking balances. He demonstrates account selection with `if/elif/else`, formatted currency output, and withdrawal checks, then identifies usability improvements such as re-prompting after invalid input and using a dictionary to support additional accounts.

Key takeaways

Chapters

0:00 ATM Structure: Balance Variables, Menu Choices, and the Main Loop
5:00 Deposits: Select an Account, Update Its Balance, and Format Output
10:00 Withdrawals: Reuse Deposit Logic and Prevent Overspending
15:00 Formatted Balance Reports, User Testing, and Assignment Expectations

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:01 Okay. So, I want to, I want to review  some of assignment six, because I know it was a pretty big step up in terms of not  necessarily difficulty, because we've sort of been building stuff that has, we've used all  of this stuff. We've used if, we've used while, we've used these things, but what we haven't  done is use them in a program that has this many parts to it. And I know that by itself can  give you some difficulties. And so I'm going to run through this, and then I'm actually gonna code  out, I probably won't code out everything, but I'm going to sort of show you how I would approach  it. And if you start with this template code, that's by far the easiest way to go. If you want  to challenge yourself and start from scratch,

0:52 I always encourage you to challenge yourself.  But using this code is totally fine also. So, we've got the two variables up at the top,  flSavingsBalance and flCheckingBalance. Both of those are floats. I've put some money in the  account to start with. And so those are going to represent our accounts throughout the whole  program. So, as we add money to our account or take money out of our account, we're going to  add and subtract from, from those variables to keep track of how much money we have. Obviously,  every time I run this program, I'm going to start over at these amounts. It doesn't save. So,  that's a flaw that we wouldn't expect to be present if it was some kind of a real financial  accounting program. That would be totally useless.

1:43 But for the purpose of this, we're just learning  how to use these structural elements. So, we've got this, we got a little welcome here, and  then we jump straight into what you might call the

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Bill Moseley, Ph.D. - Computer Science Educator.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.