Write A Python Program For Implementing Rules