filmov
tv
Python: Postal Code Programming Exercise (Ep. 2)
![preview_player](https://i.ytimg.com/vi/Jd4THudNUvE/sddefault.jpg)
Показать описание
⭕ 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
⭕ My complete online training courses:
☑️ Build Clean and Secure PHP Web Apps from Scratch:
⭕ 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.
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
⭕ My complete online training courses:
☑️ Build Clean and Secure PHP Web Apps from Scratch:
⭕ 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.