Compare commits

...

1 Commits
main ... v3

Author SHA1 Message Date
FunctionsAPI
d4b5889351 Automatic push from FunctionsAPI 2025-04-09 10:01:08 +00:00
3 changed files with 28 additions and 2 deletions

View File

@ -1,2 +1 @@
# 30cb2458ae224ba6af5ab9a3c013a587 # python hello-world

25
main.py Normal file
View File

@ -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}")

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
functions-framework==1.4.3
markupsafe==2.0.1