From aa50e6768b2ba2449089c02bcb42d0715db26246 Mon Sep 17 00:00:00 2001 From: KubMakCZ Date: Mon, 2 Feb 2026 14:49:05 +0100 Subject: [PATCH] little change --- 20_requests/dadzjokes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/20_requests/dadzjokes.py b/20_requests/dadzjokes.py index d808ff3..04cd6da 100644 --- a/20_requests/dadzjokes.py +++ b/20_requests/dadzjokes.py @@ -1,5 +1,7 @@ import requests from termcolor import colored +import time + def get_dad_joke(): print ("Nahodný dad džouk") url = "https://icanhazdadjoke.com" @@ -16,4 +18,6 @@ def get_dad_joke(): print(f"chyba:{e}") if __name__ == "__main__": - get_dad_joke() \ No newline at end of file + for i in range(5): + get_dad_joke() + time.sleep(3) \ No newline at end of file