bitwise-operators-example/or.py

9 lines
170 B
Python
Raw Normal View History

2024-10-04 13:28:50 +00:00
READ_PERMISSION = 4
WRITE_PERMISSION = 2
EXECUTE_PERMISSION = 1
userPermissions = READ_PERMISSION | WRITE_PERMISSION
print(userPermissions)
print(bin(userPermissions))