Everything you need to know about python operators

Published: 04 March 2019
on channel: 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


Watch video Everything you need to know about python operators online without registration, duration hours minute second in high quality. This video was added by user EdYoda 04 March 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 355 once and liked it 3 people.