Function cashing and drinking water desktop notification system.

 Function cashing and drinking water Desktop notification system.


Code -

---------------------------------------------

import time
from functools import lru_cache
from plyer import notification


@lru_cache(maxsize=5)
def nacho(n):
time.sleep(n)
return n


# if __name__ == '__main__':
# print("Ek run ho hai")
# print(nacho(3))

def water_drinker():
print("This Water notification system.")
while True:
time.sleep(15)
notification.notify(
title="** It's water time **",
message="Drink 1 glass of water from your bottle.... And enjoy programming...",
app_icon="full path.ico",
timeout=10)


water_drinker()

Comments

Popular posts from this blog

Shopping Bill Generator In python.

Should we start preparation for BCA/MCA from class 11th ? How ?

Python program to check that a list have elements in it or not .