Everything you need to know about python operators

Опубликовано: 04 Март 2019
на канале: EdYoda
355
3

For more courses visit : https://www.edyoda.com/

Like every other programming language, python also provides the set of operators to perform arithmetic and logical calculations. In this video we will go through python Arithmetic, Logical, Comparison, Assignment, Membership and Identity operators. We will see the difference between == (comparison operator) and is (identity operator). We will see how to use membership operators to check if element is present in any iterable datatype.

Try it yourself:

Check if two strings, s1 = "Python" and s2 = 'python' are equal or not
Check if remainder of 243 divided by 3 is zero
Check if "Python" is present in the list programming_languages = ["C","Java","python"]
Check if 44 is divisible by 2 and 4 both
Declare a variable num1 = 50 and increment the value by 5, decrement the value by 10 and print the answer


Смотрите видео Everything you need to know about python operators онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь EdYoda 04 Март 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 355 раз и оно понравилось 3 людям.