add lesson

This commit is contained in:
2025-09-12 15:12:42 +05:00
parent 739a99dcf0
commit 64200e00e1
4 changed files with 43 additions and 0 deletions

13
12-09/task2_rpo254.py Normal file
View File

@@ -0,0 +1,13 @@
import sys
number = int(input("Введите число :: "))
stage = float(input("Введите степень(0-7) :: "))
if stage <= 7 and stage >= 1:
numbd = number ** stage
print("Ответ: {}".format(numbd))
sys.exit(1)
else:
print("ОШИБКА, введена степень выше/ниже диапазона")
sys.exit(1)