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

Python - Comparing Data Types - Learn Python Programming with Code Examples - APPFICIAL

📁 Обучение 👁️ 16 📅 02.12.2023

Numbers are compared arithmetically.

Strings are compared character by character, in the same position of both strings. If two characters are different, then their Unicode value is compared; the character with the smaller Unicode value is considered to be lower.

Lists and tuples are compared via an ordered comparison of every element in the sequence. In order for two lists or tuples to be equal, every element must be equal.

Dictionaries are only compared with == and != operators. In order for two dictionaries to be equal, they must have the same set of keys and same value for each key.

Some common branching errors are using = to check for equality rather than ==. = is the assignment operator in python. Another common mistake is using invalid operators such as not greater than.

You get a TypeError for comparisons that don’t make sense, such comparing 5 to ‘grams.

Note: You can compare int and string with the equality operator ==, but do not compare floating-point values with the equality operator == because of the imprecise representation of floating-point numbers. Comparing 1/3 with 0.3333 will return false. You can use an epsilon value when comparing floating point number, and we will discuss that in a later section.

Subscribe to Appficial for more programming videos coming soon. Also, don't forget to click LIKE and comment on the video if it helped you out!

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Python - Comparing Data Types - Learn Python Programming with Code Examples - APPFICIAL», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

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

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

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