From d4b58893510e9aaba1d3935a537c9694c217a467 Mon Sep 17 00:00:00 2001 From: FunctionsAPI Date: Wed, 9 Apr 2025 10:01:08 +0000 Subject: [PATCH] Automatic push from FunctionsAPI --- README.md | 3 +-- main.py | 25 +++++++++++++++++++++++++ requirements.txt | 2 ++ 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 main.py create mode 100644 requirements.txt diff --git a/README.md b/README.md index f91946a..ca9945f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ -# 30cb2458ae224ba6af5ab9a3c013a587 - +# python hello-world diff --git a/main.py b/main.py new file mode 100644 index 0000000..d5d1f9c --- /dev/null +++ b/main.py @@ -0,0 +1,25 @@ +def calculate_sum(a, b): + """Funkcja oblicza sumę dwóch liczb.""" + return a + b + +def main(): + # Deklaracja zmiennych + name = "Anna" + age = 30 + height = 1.65 # Wzrost w metrach + + # Wywołanie funkcji pomocniczej + experience = 5 + total_years = calculate_sum(age, experience) + + # Wyświetlanie wyników + print(f"Cześć, mam na imię {name}.") + print(f"Mam {age} lat i {experience} lat doświadczenia.") + print(f"Mój wzrost to {height} m.") + print(f"Razem to {total_years} lat (wiek + doświadczenie).") + + # Prosta lista i pętla + hobbies = ["czytanie", "bieganie", "gotowanie"] + print("Moje hobby to:") + for hobby in hobbies: + print(f"- {hobby}") \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..55e8614 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +functions-framework==1.4.3 +markupsafe==2.0.1