What is the difference between & and && operators?

& operator is a bitwise AND, whereas && operator is a logical AND.

AK

Related Python Mentoring answers

All answers ▸

What are the main data structures that I can use in Python


Print "Hello World!" ten times without typing (or pasting) the print function more than once


When to use a dectionary or a list


how to compute the factorial of a number.