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 ▸

When to use a dectionary or a list


What would output this code? print(hello world)


Write a function that takes a list of numbers as input, and outputs the average of the numbers. The function should catch any errors.


Creating string from multiple strings(or characters)