RUVIDEO
Поделитесь видео 🙏

[Python Programming Basics to Advanced]:Positional Keyword Optional Variable-length Arguments|Lab 2

This Python programming playlist is designed to take beginners with zero programming experience to an expert level. The course covers installation, basic syntax, practical scenarios, and efficient logic building. The course material includes PDF handouts, review questions, and covers a wide range of topics, from data types to advanced functions like Lambda and Recursive functions, Generators, and JSON data parsing.

In this lesson we will study about different properties of the input arguments of the functions we can set while defining the function. These include:
- Default value of an Input Argument (Optional input argument)
- Positional-only and Keyword-only Input Arguments
- Variable length Input Arguments

The link for proper format of the Doc String:
https://www.python.org/dev/peps/pep-0257/

Complete Playlist:
https://www.youtube.com/playlist?list=PLWF9TXck7O_wMDB-VriREZ6EvwkWLNB7q

If you have the basic programming knowledge and interested to learn Object-Oriented Programming in Python, check out this playlist:
https://www.youtube.com/playlist?list=PLWF9TXck7O_zuU2_BVUTrmGMCXYSYzjku

Lab Manual 27 can be downloaded from here:
https://github.com/MAN1986/Python-Programming-Basics/blob/main/Lab%20Session%2027.pdf

Review Question:
1- Polygon is a planar closed shape with straight line segments. A polygon can have minimum 3 sides and there is no limit for the maximum sides. If a polygon has n sides, it will have n vertices. A vertex on XY plane can be represented as a Tuple with two values (x and y). As an example a polygon can have five vertices as:
v1=(2,4)
v2=(1,3)
v3=(5,-2)
v4=(3,1)
v5=(6,5)

Your task is to create a user-defined function polyParameter which could take any number of vertices as the input argument and will return the Perimeter of the Polygon. For above case, the function will be used like this:
polyParameter(v1,v2,v3,v4,v5)

To find the parameter you need to find the sum of length of all sides of the polygon. It will be better to create a function dist(v1,v2) which will take two vertices as input argument and returns the length of the line segment.

#PythonProgramming #python #pythontutorial

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «[Python Programming Basics to Advanced]:Positional Keyword Optional Variable-length Arguments|Lab 2», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.