diff --git a/__pycache__/test_program.cpython-311-pytest-7.1.3.pyc b/__pycache__/test_program.cpython-311-pytest-7.1.3.pyc new file mode 100644 index 00000000000..fc1b9281532 Binary files /dev/null and b/__pycache__/test_program.cpython-311-pytest-7.1.3.pyc differ diff --git a/new.py b/new.py new file mode 100644 index 00000000000..7bf1b0398c5 --- /dev/null +++ b/new.py @@ -0,0 +1,26 @@ +from math import sqrt + + +def add_numbers(first, second): + return first + second + + +def CalculateSquareRoot(Number): + return sqrt(Number) + + +def calc(your_number): + if your_number <= 0: + return + + return f"Мы вычислили квадратный корень из введённого вами числа. \ +Это будет: {CalculateSquareRoot(your_number)}" + + +first = 10 +second = 5 + +print('Сумма чисел: ', add_numbers(first, second)) + +print(calc(25.5)) +print(6) diff --git a/program.py b/program.py index e8af9125a63..eec251c69f2 100644 --- a/program.py +++ b/program.py @@ -1 +1 @@ -print('Я домашка' +print('Я домашка') diff --git a/text.txt b/text.txt new file mode 100644 index 00000000000..e69de29bb2d