1.

What is the output of >>>b = 20//2 * 0 10 10.0 0.0​

Answer»

ue of b is 10.In python, // OPERATOR is used to perform floor division. It returns the INTEGER part of the result obtained after division.When 20 is divided by 2, 10 is obtained as the quotient. So,> b = 20 // 2> b = 10Operators: Operators are symbols used to perform mathematical calculations/OPERATIONS.The different types of operators in Python are as follows -ARITHMETIC Operators: Used to perform mathematical operations like addition, subtraction etc.Logical Operators: Used to compare one or more relational expression.Assignment Operators: Used to assign values to variables.Comparison Operators: Used for comparing values.Identity Operators: Used to compare objects.Bitwise Operators: Used to compare binary numbers.Membership Operators: Used to CHECK whether any sequence is present in any object or not.



Discussion

No Comment Found