Answers for "** 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
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
1

** in python

""" depends on the data type too """
def callme(key1, key2):
  print(key1, key2)
    
obj1 ,obj2 = 6, 9
obj3 = {
  "key1": 1,
  "key2": 2
}
callme(**obj3) # easy for calling functions
print(obj1 ** obj2) # Here it is a operator (for calculating obj1 ^ obj2)
Posted by: Guest on February-08-2021
2

** in python

# ** means modulus. or exponent
x = 6
y = 2
print(x**y) # will print 6 raised to power 2
Posted by: Guest on November-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language