What is the output of print(6 & 7) in Python?
print(6 & 7)
Correct answer
A. 6
7 views
A. 6
7 views
The & operator performs bitwise AND: 6 & 7 is 6.
Asked in: Python Interview Basics
https://docs.python.org/3/tutorial/introduction.htmlNot sure why the answer is A? Ask here and get an explanation.