Operators
Operators
1929 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
TYPES OF OPERATERS
SyntaxError: invalid syntax
A=12
B=6
====================================== RESTART:
C:/Users/Lenovo/OneDrive/Desktop/python class and lab/relational operators.py
=====================================
gre of a and b <built-in function sum>
less of a and b False
equal of a and b False
not equal of a and b True
greater than equal of a and b True
less than equal of a and b False
====================================== RESTART:
C:/Users/Lenovo/OneDrive/Desktop/python class and lab/relational operators.py
=====================================
gre of a and b 4
less of a and b 7
====================================== RESTART:
C:/Users/Lenovo/OneDrive/Desktop/python class and lab/relational operators.py
=====================================
and of a and b 4
or of a and b 7
====================================== RESTART:
C:/Users/Lenovo/OneDrive/Desktop/python class and lab/relational operators.py
=====================================
and of a and b 4
or of a and b 7
or of a and b -7
Traceback (most recent call last):
File "C:/Users/Lenovo/OneDrive/Desktop/python class and lab/relational
operators.py", line 10, in <module>
print ("xor of a and b",XOR)
NameError: name 'XOR' is not defined. Did you mean: 'OR'?
====================================== RESTART:
C:/Users/Lenovo/OneDrive/Desktop/python class and lab/relational operators.py
=====================================
and of a and b 4
or of a and b 7
or of a and b -7
xor of a and b 3
====================================== RESTART:
C:/Users/Lenovo/OneDrive/Desktop/python class and lab/relational operators.py
=====================================
and of a and b 0
or of a and b 1
or of a and b -1
xor of a and b 1
====================================== RESTART:
C:/Users/Lenovo/OneDrive/Desktop/python class and lab/relational operators.py
=====================================
and of a and b 10
or of a and b 15
or of a and b -16
xor of a and b 5
====================================== RESTART:
C:/Users/Lenovo/OneDrive/Desktop/python class and lab/relational operators.py
=====================================
and of a and b 1092
or of a and b 1119
or of a and b -1112
xor of a and b 27
====================================== RESTART:
C:/Users/Lenovo/OneDrive/Desktop/python class and lab/relational operators.py
=====================================
and of a and b 10
or of a and b 15
or of a and b -16
xor of a and b 5