#11 Python Tutorial for Beginners | Operators in Python



#11 Python Tutorial for Beginners | Operators in Python

#11 Python Tutorial for Beginners | Operators in Python

In this lecture we will learn:
– Different types of operators in Python
– Use of different operators
– Operation performed between different operators
– Logical operators and their uses
#1
– Types of operators in Python:
1. Arithmetic operators
2. Assignment operators
3. Relational operators
4. Logical operators
5. Unary operators
– Arithmetic operators are used to perform mathematical operations like addition, subtraction, multiplication, division, etc.
– Assignment operation is performed with the help of equal to(=), in which we can assign a value to the variable.
– We can also do the assignment by short-hand which means performing an arithmetic operation and then assigning the value both at the same time.
– We can also assign the values in one line for two variables.
a,b = 5,6
– Unary operator takes a single operand in an expression or a statement.
– Comparison can be performed with the help of relational operators.
– Comparison operators return a boolean value or True or False.

#2
– If you want to combine two or more conditions and then check the relation between them, then logical operators are used.
– Logical operators include And, Or and Not.
– Logical operators follow the truth table for And, Or, and Not operators.
– And the operator returns True when both conditions are true otherwise returns False.
Or the operator returns True when any of the conditions or both the conditions are True otherwise it returns False.
Not the operator reverses the value of the output.

Github :- https://github.com/navinreddy20/Python-

Python for Beginners :- http://bit.ly/3JOLQhl

Java and Spring Framework For beginners with Spring Boot : – http://bit.ly/3LDMj8D

Java Tutorial for Beginners (2023) :- http://bit.ly/3yARVbN

Editing Machines & Monitors :
https://amzn.to/2HA6ra8
https://amzn.to/2VMBBPw
https://amzn.to/2RfKWgL
https://amzn.to/2Q665JW
https://amzn.to/2OUP21a.

Check out our website: www.telusko.com
courses.telusko.com

Instagram : https://www.instagram.com/navinreddy20
Twitter : https://twitter.com/navinreddy20
Facebook:
Telusko : https://www.facebook.com/teluskolearn…
Navin Reddy : https://www.facebook.com/navintelusko

Subscribe to our other channel:
Navin Reddy : https://www.youtube.com/channel/UCxmkk8bMSOF-UBF43z-pdGQ
Telusko Hindi : https://www.youtube.com/channel/UCitzw4ROeTVGRRLnCPws-cw

Donation & Support:
Indian Payment : https://www.instamojo.com/@NavinReddy/
PayPal Id : navinreddy20
Patreon : navinreddy20

More Learning :

Python for Beginners :- https://bit.ly/3x2g23h
Django Tutorial for Beginners :- https://bit.ly/3GyNqS6

JavaScript Tutorial for Beginners :- https://bit.ly/3NGR3ba
Node JS Tutorial for Beginners:- https://bit.ly/3N82IQy

Java Tutorial For Beginners :- https://bit.ly/3z8HWfq
Rest Api | Restful Web Service :-https://bit.ly/3axANLo
Servlet and JSP Tutorial for Beginners :- https://bit.ly/3M0FhqH
Spring Framework with Maven Tutorial :- https://bit.ly/3LWByL3
Design Patterns in Java :- https://bit.ly/3a9VjSa
Docker Basics:- https://bit.ly/38DNLqo

Blockchain Tutorial for Beginners :- https://bit.ly/3x33f0z
The Web3 Show:- https://bit.ly/3M4znF0
Corda Tutorial:- https://bit.ly/3Q2Zwrg
Hyperledger Fabric :- https://bit.ly/3PMFJfD

NoSQL Tutorial for Beginners :- https://bit.ly/3m03Ycq
Sql Tutorial for Beginners :- https://bit.ly/3GyWWEU
Mysql Tutorial :- https://bit.ly/3M4C6OK

Data Structures using Java :- https://bit.ly/3t5HPNY
Data Structures using C :- https://bit.ly/3GBLoAE
Kotlin Tutorial:- https://bit.ly/3x1kOfV
Git Tutorial for Beginners:- https://bit.ly/3NMbmUw
C Programming Tutorial :- https://bit.ly/3x4bA45

Comments are closed.