Python Tutorial for Beginners 2021 - Practice Program - Unit Conversion Two

Опубликовано: 23 Январь 2021
на канале: DO Programming
719
16

Hey guys, this is the 27th video for my Python's tutorial course for beginners. We will be covering all the basics about Python including installing and setting up the development environment, variables, data structures, iterations, conditionals, operators, error handlings, functions, classes and many more. The aim for this tutorial is to provide with a solid foundation layer for Python and programming in general so that we can proceed to more advanced level Python tutorials and also look into different application areas of using Python such as web development and data science.

This video is the second half of the practice program for unit conversion. In our last video, we've talked about two bad strategies of implementing a program, both of them required lots of manual work and coding. So in this video, we are using a dictionary that contains a set of equal values for all units that we want to convert in the program, and use a simple cross multiplication to calculate the converted value.
With this approach, we no longer require n number of if and elif blocks or separate mapper that contains specific calculation for one unit, but instead every unit conversion logic will be contained within that one dictionary.



=============================================================

Timestamps:

00:00 Introduction
00:26 Unit Conversion Implementation




=============================================================

Share video link:    • Python Tutorial for Beginners 2021 - ...  
=============================================================

GitHub link:
https://github.com/funandeasyprogramm...
=============================================================

Instagram:   / do_programming  
Facebook:   / danny.oh.96742  


На этой странице сайта вы можете посмотреть видео онлайн Python Tutorial for Beginners 2021 - Practice Program - Unit Conversion Two длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь DO Programming 23 Январь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 719 раз и оно понравилось 16 зрителям. Приятного просмотра!