Answers for "what is // in python"

2

x and y in python

x = 10
y = 12

# Output: x > y is False
print('x > y is',x>y)

# Output: x < y is True
print('x < y is',x<y)

# Output: x == y is False
print('x == y is',x==y)

# Output: x != y is True
print('x != y is',x!=y)

# Output: x >= y is False
print('x >= y is',x>=y)

# Output: x <= y is True
print('x <= y is',x<=y)
Posted by: Guest on May-10-2020
1

logical operators in python

condition1 and condition2
condition1 or condition2
not condition
Posted by: Guest on November-15-2020
8

or in python

# Syntax for Boolean expression with or in Python
exp1 or exp2
Posted by: Guest on July-06-2020
6

** in python

#** is the exponent symbol in Python, so:
print(2 ** 3)
#output: 8
Posted by: Guest on April-13-2020
5

python logical operators

not 
and 
or
Posted by: Guest on November-01-2020
0

what is // in python

"""
  '//' is floor division on python which mean
  the result will be rounded down (eg: 3.14 become 3), so
  
  '5 // 2' will be 2
"""
Posted by: Guest on September-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language