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