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

Popular posts from this blog

java chapter11 practice question on abstruct class and interfaces

DAY 12 -AZURE DP900(Microsoft Azure Data Fundamentals: Explore non-relational data in Azure)

java exercise4