Python Operators - Python for Beginners

Publié le: 15 juillet 2020
sur la chaîne: DO IT WITH CODE
7
0

➡️ Check out more tutorials at http://doitwithcode.com
➡️ Learn about Python operators. Python has various operators, examples are below:

+ Addition - Adds values on either side of the operator. a + b = 30
Subtraction - Subtracts right hand operand from left hand operand. a – b = -10
Multiplication - Multiplies values on either side of the operator a * b = 200
/ Division - Divides left hand operand by right hand operand b / a = 2
% Modulus - Divides left hand operand by right hand operand and returns remainder b % a = 0
** Exponent- Performs exponential (power) calculation on operators a**b =10 to the power 20
// Floor Division - The division of operands where the result is the quotient in which the digits after the decimal point are removed. But if one of the operands is negative, the result is floored, i.e., rounded away from zero (towards negative infinity) − 9//2 = 4 and 9.0//2.0 = 4.0, -11//3 = -4, -11.0//3 = -4.0


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Operators - Python for Beginners durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur DO IT WITH CODE 15 juillet 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 7 fois et il a aimé 0 téléspectateurs. Bon visionnage!