Python:  Postal Code Programming Exercise (Ep. 2)
Channel: Christian Hur
Date: 2020-10-11

⭕ Overview
In this video, we'll continue building the postal code application, picking up from where we left off in part one. If you haven't watched the first video where I explained the initial steps to solve this problem, I recommend watching that episode first.

In this session, I'll guide you through the remaining steps to complete our tiny Python program, which converts a five-digit ZIP code into a barcode representation. This barcode is commonly seen on most U.S. mailers.

We'll dive into the specific coding techniques required to achieve this, ensuring you understand each step and its purpose.

If you find this video helpful, please give it a thumbs up, share it with your friends, and subscribe to my channel for more tutorials and insights into programming. Your support helps me create more content to assist you in your learning journey. Thank you for watching!

Write a program that asks the user for a zip code and prints the bar code. Use : for half bars, | for full bars. For example, the encoding scheme for a five-digit zip code 95014 becomes:

||:|:::|:|:||::::::||:|::|:::|||

Provide and implement these functions:
def main() # Main entry to start the program
def getDigit() # Reads and return the 5-digit zip code
def printDigit(d) # Prints the bar code for a digit
def printBarCode(zipCode) # Prints the encoded bar code

⭕ Chapters
  0:00 - Introduction
  1:20 - Coding start
  2:42 - Refactoring the getCodeDigits() function
  5:25 - Refactoring the printDigit() function
  7:26 - Run the program

⭕ About me
I am a Web instructor and author for Linkedin Learning (formerly Lynda.com), Packt, E-C Council, Udemy, and MC Press.

⭕ Visit my site: https://christianhur.com
⭕ My complete online training courses:
      ☑️ REST APIs & AJAX Operations Using Node, Express, and jQuery:  https://www.udemy.com/course/rest-apis-ajax-operations-using-node-express-and-jquery/?referralCode=A762AE70D9FD6A931F9B
https://www.udemy.com/course/build-clean-and-secure-php-web-apps-from-scratch/?referralCode=C200BB52F0C7153B93CC
      ☑️ Build Clean and Secure PHP Web Apps from Scratch: 
https://www.udemy.com/course/build-clean-and-secure-php-web-apps-from-scratch/?referralCode=C200BB52F0C7153B93CC
      ☑️ The DOM in JavaScript, jQuery, AngularJS, and React : https://www.linkedin.com/learning/the-dom-in-javascript-jquery-angularjs-and-react
      ☑️ Building JSF Web Applications with Java EE 7:  https://www.linkedin.com/learning/building-jsf-web-applications-with-java-ee-7
      ☑️ Troubleshooting Vue.js:  https://www.packtpub.com/application-development/troubleshooting-vuejs-video
      ☑️ Angular 7 New Features:  https://www.packtpub.com/web-development/angular-7-new-features-video
      ☑️ Full-Stack Web Development with Flask: https://www.packtpub.com/web-development/full-stack-web-development-flask-video
      ☑️ Full-Stack Web Development with Django & Angular 8: https://www.packtpub.com/web-development/full-stack-web-development-with-django-and-angular-8-video
      ☑️ Angular 9 New Features:  https://www.packtpub.com/web-development/angular-9-new-features-video

⭕ Check out my book:
Developing Business Applications for the Web: With HTML, CSS, JSP, PHP, ASP.NET, and JavaScript is available on Amazon and MC Press. 
      ☑️ Link:  https://www.mc-store.com/collections/christian-hur/products/developing-business-applications-for-the-web-with-html-css-jsp-php-asp-net-and-javascript