'convert a number to uint24 in python

How do I convert a number (int) into uint24 in python3?

num = 196458

num_uint24 = ?


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source