Why: Python Arithmetic, Comparison, Assignment, Identity, Membership & Logical Operators?
Get The Full “Learn Python ?” Online Course:
http://www.mnemonic.academy/learn-python
The following video is from an online educational course produced by Mnemonic Academy that teaches the basics of Python programming using mnemonics, metaphors and the science of learning titled “Learn Python: Like a Bee Student”, taught by instructor Dylan Jorgensen
What is an operator?
- An operator is any symbol that represents an action.
- For example: “*” is an arithmetic operator that represents multiplication.
- There are lots of specific operators so we will just cover the groups in this video.
What are Arithmetic Operators?
- They are the same operations that you learned in elementary, and high school math. Addition, subtraction, multiplication and division being the most common.
- They also follow the traditional order of operations in python.
What is a comparison operator?
- These operators sit between two values and decide on the relationship between them.
- They are also called relational operators.
The double equals operator (==) is known as the equality operator and is asking if the objects referred to are equal on the surface level only (not in memory ID location, or our dog tag mnemonic) -
They can also be confused with the assignment operator for beginners so be careful.
What are assignment operators?
- Assignment operator insert new value to a variable.
We are already super familiar with this operator.
What are identity operators? (is)
- Identity operators compare the memory locations of two objects.
- “is” will return true only two variables point to the same object in memory. (as opposed to the equality operator that just looks for equal values)
What are membership operators?
- Membership operators test for membership in a group. This can apply to lists, dictionaries, strings, tuples, etc.
What are logical operators?
- Logical operators test basic Truth statements. Think of the words “and” and “or”
- For example, this statement is False
- - There is a prize behind door number 1 and door number 2
- This statement is True
- - There is a prize behind door number 1 or door number 2
Photos under creative commons licence are links to the original source from the Learn Python: E-Book. https://goo.gl/BAMwi6, https://goo.gl/K1xRFv, https://goo.gl/9k2MY3
Interested in Learning More About Online Courses That Teach Using Mnemonics, Metaphors and the Science of Learning?
Checkout All Our Mnemonic Academy ? Online Courses:
http://www.mnemonic.academy
Subscribe To Our Mnemonic Academy ? YouTube Channel:
https://www.youtube.com/channel/UCrZjSLS1o3FJDS5hFoTCIPQ
Like Our Mnemonic Academy ? Facebook Page:
https://www.facebook.com/www.mnemonic.academy
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Why: Python Arithmetic, Comparison, Assignment, Identity, Membership & Logical Operators?», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.