├── .github └── workflows │ └── homework.yml ├── README.md ├── arithmetic_op01.py ├── arithmetic_op02.py ├── arithmetic_op03.py ├── arithmetic_op04.py ├── arithmetic_op05.py ├── arithmetic_op06.py ├── arithmetic_op07.py ├── arithmetic_op08.py ├── arithmetic_op09.py └── arithmetic_op10.py /.github/workflows/homework.yml: -------------------------------------------------------------------------------- 1 | name: Variables and Arithmetic Operators 2 | on: [push] 3 | jobs: 4 | build: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - name: Checkout 8 | uses: actions/checkout@v2 9 | 10 | # Checkout the repository 11 | - name: Checkout the repository 12 | uses: actions/checkout@v2 13 | with: 14 | repository: codeschooluz/variables_and_arithmetic_operators_test 15 | token: ${{secrets.TEST_KEY}} 16 | path: test 17 | - name: Install dependencies 18 | uses: actions/setup-python@v2 19 | with: 20 | python-version: "3.9" 21 | - name: Install pytest 22 | run: | 23 | pip install pytest 24 | - name: Run tests 25 | run: | 26 | pytest -v --tb=no -q -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Welcome 2 | # Variables and Arithmetic Operators 3 | 4 | Automated grading of homework assignments and tests 5 | - fork this repository 6 | - solve the task 7 | - commit with proper message 8 | - commit with proper message 9 | 10 | # Instructions 11 | ```Python 12 | 13 | ``` 14 | 15 | # Warning 16 | - don't copy other solutions or any solution 17 | - don't remove comments -------------------------------------------------------------------------------- /arithmetic_op01.py: -------------------------------------------------------------------------------- 1 | num_one = 5 2 | num_two = 4 3 | variable_total = num_one + num_two 4 | print(variable_total) -------------------------------------------------------------------------------- /arithmetic_op02.py: -------------------------------------------------------------------------------- 1 | a = 3 2 | b = 4 3 | answer = a + b 4 | print(answer) -------------------------------------------------------------------------------- /arithmetic_op03.py: -------------------------------------------------------------------------------- 1 | a = 6 2 | b = 2 3 | answer = a - b 4 | print(answer) -------------------------------------------------------------------------------- /arithmetic_op04.py: -------------------------------------------------------------------------------- 1 | a = 5 2 | b = 4 3 | answer = a * b 4 | print(answer) -------------------------------------------------------------------------------- /arithmetic_op05.py: -------------------------------------------------------------------------------- 1 | a = 72 2 | b = 9 3 | answer = a / b 4 | print(answer) -------------------------------------------------------------------------------- /arithmetic_op06.py: -------------------------------------------------------------------------------- 1 | a = 7 2 | b = 3 3 | c = 5 4 | answer = a + b + c 5 | print(answer) -------------------------------------------------------------------------------- /arithmetic_op07.py: -------------------------------------------------------------------------------- 1 | a = 12 2 | b = 4 3 | c = 1 4 | answer = a - b + c 5 | print(answer) -------------------------------------------------------------------------------- /arithmetic_op08.py: -------------------------------------------------------------------------------- 1 | a = 3 2 | b = 4 3 | c = 2 4 | answer = a * b / c 5 | print(answer) -------------------------------------------------------------------------------- /arithmetic_op09.py: -------------------------------------------------------------------------------- 1 | a = 8 2 | b = 3 3 | c = 2 4 | d = 4 5 | answer = a + b - c * d 6 | print(answer) -------------------------------------------------------------------------------- /arithmetic_op10.py: -------------------------------------------------------------------------------- 1 | n = 4 2 | answer = 2 ** n 3 | print(answer) --------------------------------------------------------------------------------