├── basic_func01.py ├── basic_func04.py ├── basic_func05.py ├── basic_func02.py ├── basic_func03.py ├── basic_func06.py ├── basic_func07.py ├── basic_func08.py ├── basic_func09.py ├── basic_func10.py ├── README.md └── .github └── workflows └── homework.yml /basic_func01.py: -------------------------------------------------------------------------------- 1 | def main(): 2 | return 0 3 | 4 | x = main() 5 | print(x) -------------------------------------------------------------------------------- /basic_func04.py: -------------------------------------------------------------------------------- 1 | def main(): 2 | return 12 3 | 4 | x = main() 5 | print(x) -------------------------------------------------------------------------------- /basic_func05.py: -------------------------------------------------------------------------------- 1 | def main(): 2 | return 12.3 3 | 4 | x = main() 5 | print(x) -------------------------------------------------------------------------------- /basic_func02.py: -------------------------------------------------------------------------------- 1 | def main(): 2 | return "Hello World" 3 | 4 | x = main() 5 | print(x) -------------------------------------------------------------------------------- /basic_func03.py: -------------------------------------------------------------------------------- 1 | def main(): 2 | return "codeschooluz" 3 | 4 | x = main() 5 | print(x) -------------------------------------------------------------------------------- /basic_func06.py: -------------------------------------------------------------------------------- 1 | def main(): 2 | return "Muhammad Ali" 3 | 4 | x = main() 5 | print(x) -------------------------------------------------------------------------------- /basic_func07.py: -------------------------------------------------------------------------------- 1 | def main(a): 2 | return a 3 | 4 | x = main("Hello World") 5 | print(x) -------------------------------------------------------------------------------- /basic_func08.py: -------------------------------------------------------------------------------- 1 | def main(a): 2 | a += 1 3 | return a 4 | 5 | x = main(11) 6 | print(x) -------------------------------------------------------------------------------- /basic_func09.py: -------------------------------------------------------------------------------- 1 | def main(a): 2 | a -= 1 3 | return a 4 | 5 | x = main(77) 6 | print(x) -------------------------------------------------------------------------------- /basic_func10.py: -------------------------------------------------------------------------------- 1 | def main(a): 2 | a *= -1 3 | return a 4 | 5 | x = main(44) 6 | print(x) -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Basic Function Homework 2 | 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 18 | -------------------------------------------------------------------------------- /.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/basic_function_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 --------------------------------------------------------------------------------