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)