a = 60 # 60 = 0011 1100
b = 13 # 13 = 0000 1101
c = 0
c = a & b; # 12 = 0000 1100
print “Line 1 – Value of c is “, c
c = a | b; # 61 = 0011 1101
Answers
Answered by
1
Answer:
Following example to understand all the comparison operators available in Python programming language:
# !/usr/bin/python
a = 21
b = 10
c = 0
if (a = = b ):
hope it helps you />
tex
Answered by
1
Answer:
Following example to understand all the comparison operators available in Python programming language:
# !/usr/bin/python
a = 21
b = 10
c = 0
if (a = = b ):
hope it helps you />
tex
Similar questions