FUNCTION CATCHING IN PYTHON DAY 5
from functools import lru_cache
import time
@lru_cache(maxsize=(int(input("How many values would you like to cache = "))))
def funccc():
time.sleep(5)
if __name__ == '__main__':
print("Loading your game:")
funccc()
print("File not found")
funccc()
print("Loading again")
funccc()
print("Done")
Comments
Post a Comment