This commit is contained in:
2025-12-18 11:42:41 +01:00
parent 0c7e117306
commit bb3f160bb2
2 changed files with 13 additions and 2 deletions

View File

@@ -12,4 +12,8 @@ def funkcja(parametr: str) -> str:
powitanie = f"Witam cię {parametr.capitalize()} serdecznie"
return powitanie
print(funkcja("adam"))
# tylko gdy bezpośrednio uruchamiamy ten skrypt
# a nie, gdy z niego importujemy!
print(f"Nazwa przestrzeni: {__name__=}")
if __name__ == "__main__":
print(funkcja("adam"))