From 5743a01bfd625c34b3cf520577949bdadbb62014 Mon Sep 17 00:00:00 2001 From: EfremovSI Date: Sun, 30 Nov 2025 10:42:26 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'TEMA7/report.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMA7/report.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/TEMA7/report.md b/TEMA7/report.md index 48267ee..b2a15b9 100644 --- a/TEMA7/report.md +++ b/TEMA7/report.md @@ -267,6 +267,17 @@ def func2(sps): func2(sps1) print(sps1) [1, 99, 3, 4] + +kort=(1,2,3,4) +func2(kort) +Traceback (most recent call last): + File "", line 1, in + func2(kort) + File "", line 2, in func2 + sps[1]=99 +TypeError: 'tuple' object does not support item assignment + + ``` ## 5. Специальные типы пользовательских функций @@ -275,6 +286,7 @@ print(sps1) anfun1=lambda: 1.5+math.log10(17.23) anfun1() 2.7362852774480286 +anfun2=lambda a,b : a+math.log10(b) anfun2(17,234) 19.369215857410143 anfun3=lambda a,b=234: a+math.log10(b)