From d4b2c24aadef84d235ff8d79923de0a419c3fa4d Mon Sep 17 00:00:00 2001 From: BerezhkovDA Date: Fri, 7 Nov 2025 06:57:56 +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'TEMA5/report.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMA5/report.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/TEMA5/report.md b/TEMA5/report.md index f6cbc45..4b421ba 100644 --- a/TEMA5/report.md +++ b/TEMA5/report.md @@ -35,6 +35,17 @@ 11 ``` ```py +>>> dohod=2 if porog>=4 else 0 +>>> dohod +2 +>>> if porog>=5 : rashod1=6; rashod2=0 +... +>>> rashod1 +6 +>>> rashod2 +0 +``` +```py >>> rashod1=8 >>> rashod2=4 >>> porog=4 @@ -49,17 +60,6 @@ else: >>> dohod 2 ``` -```py ->>> dohod=2 if porog>=4 else 0 ->>> dohod -2 ->>> if porog>=5 : rashod1=6; rashod2=0 -... ->>> rashod1 -8 ->>> rashod2 -4 -``` ## 3. Цикл по перечислению – управляющая инструкция for. 3.1 Простой цикл ```py