From b9720ede664fc76a6c3f3759ddcdbab666672d92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?hamza=20=C3=B6=C4=9Fretmi=C5=9F?= Date: Tue, 6 Oct 2026 11:31:18 +0300 Subject: [PATCH 1/3] types homework Please enter the commit message for your changes. Lines starting --- Week02/types_mehmet_hamza_ogretmis.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Week02/types_mehmet_hamza_ogretmis.py diff --git a/Week02/types_mehmet_hamza_ogretmis.py b/Week02/types_mehmet_hamza_ogretmis.py new file mode 100644 index 000000000..e69de29bb From f35a7a92fc29956d624c481338cbff8c0d058b26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?hamza=20=C3=B6=C4=9Fretmi=C5=9F?= Date: Tue, 6 Oct 2026 14:31:32 +0300 Subject: [PATCH 2/3] feat: types homework --- .../test_types.cpython-314-pytest-9.1.1.pyc | Bin 0 -> 12180 bytes .../types_mehmet_hamza_ogretmis.cpython-314.pyc | Bin 0 -> 285 bytes Week02/types_mehmet_hamza_ogretmis.py | 4 ++++ 3 files changed, 4 insertions(+) create mode 100644 Week02/__pycache__/test_types.cpython-314-pytest-9.1.1.pyc create mode 100644 Week02/__pycache__/types_mehmet_hamza_ogretmis.cpython-314.pyc diff --git a/Week02/__pycache__/test_types.cpython-314-pytest-9.1.1.pyc b/Week02/__pycache__/test_types.cpython-314-pytest-9.1.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..95b6439ef203ee33b2ecd2be75356cc4b0744d6e GIT binary patch literal 12180 zcmeHNO>7&-6`tikDN59@en;~K#g9?Gy+V(I`EK#4!#sU1ik4=Y-)v??fJrwSn*`3+tkFD5_ z04va9Is4w5_h#PAyvN=BX5X%=bRak$eEhdxB~1uTV1^!6mDu?uhtN&*G2*!oki?Oz z;eF%0p#{BflFThijYYDITZXErv36}mAg|VVN)6RfO1q9bdY~_S&}%gsMe_zP{05F8 zG>3)`EA{%4H&E?Us(9LnP%|2ALdcIU8wOhtvZFVkjRcaM`{xc+CR1WpY%bOO}BZgc68HbJZ~7Iu0ca0jx_7KbymZF<@p=Hj=r1zv&!^ z=SJxqU*e`0@GJ)`RC~xqDeVe#Q|~u-b9}?q`ffuH#27w!gU*UXpdzPbEAn%64tXPQ z3OH#^`3UP#tFedEtwmmyiM>`7P(9HijgD&)qNZR}W&JC)|A^yFyqUM`fv*NSdO9aB z=xd2R_-f&;yRHF?3EsA=E{hc2zN@Z@j-$iU#-aye)1tGirDN8v5K9g}{0rgO)#oQ| zjjzy4d8gmf!4kP+p=eY#_nc-(R&j~$z7%5F1lsoWJJJJk8BDrgrb-{gNw7W33PnPql$?;BD!O7$vqjKip0W`?num?tZ}>> z62&mQ@V$8&bh|tvvFVa+U^5kshooc^rOMdLR;audk4KY@Dp5|!0d*7c*+ewFm^`M@ zWmF&h@9ER09!@qyVjeCzM11my*i%CKJfh<_lybjAgxwzTG!~tubwH?9J!;h%kLYoH zf={Pxo{B`nqF{%oZNUnK?07G+B!xvO7!u@~;6x}I4GQ6efc*^#Vc8xOLsMZak)5C! zyfz<+N|Bf-TcUAL7Ud&BaV9<=og`Ml>1g~~C>o4~X2a0hR9u)1LCa)@XT@o`s-KXN zc6u6tFYTg8FS&H}Dm#Ba)O z^^p57{xmQOAs_~3LbJ(GU}#C2iN`KRp>vfU65`WBXm&Odn+{wJhkxzs3XmBih=Dh; zBs&O;2Q3P3LEHG9RkXr8?oISXR68cHqU?e!f^mE{o z_k;ER^@(+1eIV~u9b@&(Xxnu(Yx8G}ncDOe5Ucg+sXNU;tPH1{bH}_uWsi9`T;464 zUpY5z{^g`X<~5R4-^ZqmyH~(5G3khLptM@AaA2LDQb_10-ONaEg6ZeLC*Mcep(|N_ zG&?++9rEXWs&h<-8E(6dWNjm9F=I&kfmk)A{db%|tXxbxbIt8QWt-bKTB?9Lx!RMl+_^x=6)}Aw*Wx2|w#B#M@;$-I|Hj3? zOb^gwGZ4!+i0}~>{u9|hvp+168ttE*d4i??p_W8vMI@G_&@5HyW76I;ELVHVS*p^V zLQgUlqWfK;G<~6*6b7j^OookzNu1qwzMToJ8P{qvQ+a346C;d9Q)S~Kqa<=7+Oeam zx*hmGC`5NLzCw_~HdhH!XdPI_NFm&Z5q}79LQaPhGF)!%_z=U;aO=te=pp`7Cx_n{ zV2EIkib2i&oMKmiA7%*B#_+WvhVs!C5CY7Hqkibo9g52E2ECMEg$#o(hdQ^SGFYMJ zL0QyE!-{CHbPOt1sM*(Ro>K~*Lm9?J?HN}1!~0r-^}V34CH5*-xXT!Ic&#n4o34f{ z+IQ8}a771S5%}TfON&r-=ivqCtHd7WtAcm#IxYGWa;nPwiTi!6#|WD`arpb2GU9AcN@~<9Ci9bp|)=K?Z9P`f?du zVh`_Dd1O2 z;V3TfhcE(s{e%SkNG#xYZNZBRK!}jgfeZXCmEeQIV-etcJS5WTMQ0uxGugcYj)_U1j02^W zlL~j=HkMjY$W0&tt;X#G3GOH~D?#-uk#W!l<)9)7W(xlMI`XTa6tX zjU9x)kxm%UE zD_sKbMx&Q4f%mQ{=jv6LptpDlPGwp%7c+e3t-RB>kC(vvJ(j?v&8ikTcNJ;L67*`y zFSP`n8;zZ82|Dlg=l56wU0~~$K#`U#!TIMd z0hz^}8rU=tFz}?@PHJTv-FGE-4f$wL*|ha4JEX8{>J`G*g@^|O)j{6p&-=W{yA;lXG|M|l|eV7t% zU;pCz?N7h>G_#m%IlEbZE@vCws6V$n_jTZ}f%Q{c@9=-DS*`)ehHdz!`5*SGoBiLI zY|BS)UAZNu47dDwdsAvEZ$Fuy%hY9#rx)_}_Dz%b8 literal 0 HcmV?d00001 diff --git a/Week02/__pycache__/types_mehmet_hamza_ogretmis.cpython-314.pyc b/Week02/__pycache__/types_mehmet_hamza_ogretmis.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bf1dca92fab07f5ee50925c696bf2f49f04639bc GIT binary patch literal 285 zcmdPq|7CVrYl%Jn-iwnp| z&d)8#Nv&AP@EN4(R* Date: Wed, 7 Oct 2026 10:25:17 +0300 Subject: [PATCH 3/3] refactor: ubuntu terminal test --- .github/ISSUE_TEMPLATE/bug_report.md | 76 +++---- .github/ISSUE_TEMPLATE/feature_request.md | 40 ++-- .github/workflows/python-app-week-01.yml | 80 +++---- .github/workflows/python-app-week-02.yml | 80 +++---- .github/workflows/python-app-week-03.yml | 82 +++---- CODE_OF_CONDUCT.md | 256 +++++++++++----------- CONTRIBUTING.md | 30 +-- LICENSE | 42 ++-- README.md | 62 +++--- SECURITY.md | 18 +- Week01/info_afra_inanc.py | 4 +- Week01/info_ahmet_murat_akarsu.py | 2 +- Week01/info_ayca_selda_keskin.py | 4 +- Week01/info_batuhan_tunc.py | 4 +- Week01/info_berat_uzdil.py | 2 +- Week01/info_beytullah_arslan.py | 4 +- Week01/info_caner_gundas.py | 4 +- Week01/info_egehan_hatipoglu.py | 4 +- Week01/info_elif_gulseren.py | 4 +- Week01/info_enes_karakus.py | 4 +- Week01/info_erban_gurcan.py | 4 +- Week01/info_esra_sepik.py | 2 +- Week01/info_furkan_kilic.py | 4 +- Week01/info_hilmican_karadag.py | 4 +- Week01/info_ilknur_alpnar.py | 4 +- Week01/info_ilyas_bugra_filoglu.py | 4 +- Week01/info_kamil_ibrahimli.py | 4 +- Week01/info_kayra_hokenek.py | 4 +- Week01/info_kayra_oz.py | 4 +- Week01/info_kayraemre_karaosmanoglu.py | 4 +- Week01/info_khazar_abdullayev.py | 4 +- Week01/info_mehmet_hamza_ogretmis.py | 2 +- Week01/info_mehmet_mert_yigit.py | 4 +- Week01/info_mustafa_uysal.py | 4 +- Week01/info_nazmi_emir_ozer.py | 2 +- Week01/info_omer_kayaalp.py | 4 +- Week01/info_pelin_akkus.py | 4 +- Week01/info_saliha_sumeyye_comert.py | 6 +- Week01/info_sedasengul_ozkaya.py | 4 +- Week01/info_umut_turk.py | 2 +- Week01/info_yagiz_cengiz.py | 4 +- Week01/info_yasarmert_turkmen.py | 4 +- Week01/info_yasin_buyuktepe.py | 4 +- Week01/info_yusuf_baris.py | 4 +- Week01/info_zahra_ismayilli.py | 4 +- Week01/test_info.py | 50 ++--- Week02/test_types.py | 62 +++--- Week02/types_mehmet_hamza_ogretmis.py | 6 +- Week03/test_pyramid.py | 104 ++++----- Week03/test_sequences.py | 236 ++++++++++---------- pull_request_template.md | 20 +- 51 files changed, 687 insertions(+), 687 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea782..6867cf8d2 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,38 +1,38 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index bbcbbe7d6..72718d5aa 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,20 +1,20 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: '' -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/python-app-week-01.yml b/.github/workflows/python-app-week-01.yml index 39590ee1a..76616f5c5 100644 --- a/.github/workflows/python-app-week-01.yml +++ b/.github/workflows/python-app-week-01.yml @@ -1,41 +1,41 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Week01 Homework - -on: - push: - branches: [ "master" ] - paths: ['Week01/**'] - pull_request: - branches: [ "master" ] - paths: ['Week01/**'] - -permissions: - contents: read - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.12 - uses: actions/setup-python@v3 - with: - python-version: "3.12" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Week01 Homework + +on: + push: + branches: [ "master" ] + paths: ['Week01/**'] + pull_request: + branches: [ "master" ] + paths: ['Week01/**'] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.12 + uses: actions/setup-python@v3 + with: + python-version: "3.12" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | pytest -q --tb=no 'Week01/test_info.py' \ No newline at end of file diff --git a/.github/workflows/python-app-week-02.yml b/.github/workflows/python-app-week-02.yml index f5059d845..c4ca79533 100644 --- a/.github/workflows/python-app-week-02.yml +++ b/.github/workflows/python-app-week-02.yml @@ -1,41 +1,41 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Week02 Homework - -on: - push: - branches: [ "master" ] - paths: ['Week02/**'] - pull_request: - branches: [ "master" ] - paths: ['Week02/**'] - -permissions: - contents: read - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.12 - uses: actions/setup-python@v3 - with: - python-version: "3.12" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Week02 Homework + +on: + push: + branches: [ "master" ] + paths: ['Week02/**'] + pull_request: + branches: [ "master" ] + paths: ['Week02/**'] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.12 + uses: actions/setup-python@v3 + with: + python-version: "3.12" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | pytest -q --tb=no 'Week02/test_types.py' \ No newline at end of file diff --git a/.github/workflows/python-app-week-03.yml b/.github/workflows/python-app-week-03.yml index a029a555e..3b7940494 100644 --- a/.github/workflows/python-app-week-03.yml +++ b/.github/workflows/python-app-week-03.yml @@ -1,41 +1,41 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Week03 Homework - -on: - push: - branches: ["master"] - paths: ["Week03/**"] - pull_request: - branches: ["master"] - paths: ["Week03/**"] - -permissions: - contents: read - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.12 - uses: actions/setup-python@v3 - with: - python-version: "3.12" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest -q --tb=no 'Week03/test_pyramid.py' - pytest -q --tb=no 'Week03/test_sequences.py' +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Week03 Homework + +on: + push: + branches: ["master"] + paths: ["Week03/**"] + pull_request: + branches: ["master"] + paths: ["Week03/**"] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.12 + uses: actions/setup-python@v3 + with: + python-version: "3.12" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest -q --tb=no 'Week03/test_pyramid.py' + pytest -q --tb=no 'Week03/test_sequences.py' diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 42e23adec..549c831fd 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,128 +1,128 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -We as members, contributors, and leaders pledge to make participation in our -community a harassment-free experience for everyone, regardless of age, body -size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, -nationality, personal appearance, race, religion, or sexual identity -and orientation. - -We pledge to act and interact in ways that contribute to an open, welcoming, -diverse, inclusive, and healthy community. - -## Our Standards - -Examples of behavior that contributes to a positive environment for our -community include: - -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, - and learning from the experience -* Focusing on what is best not just for us as individuals, but for the - overall community - -Examples of unacceptable behavior include: - -* The use of sexualized language or imagery, and sexual attention or - advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email - address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Enforcement Responsibilities - -Community leaders are responsible for clarifying and enforcing our standards of -acceptable behavior and will take appropriate and fair corrective action in -response to any behavior that they deem inappropriate, threatening, offensive, -or harmful. - -Community leaders have the right and responsibility to remove, edit, or reject -comments, commits, code, wiki edits, issues, and other contributions that are -not aligned to this Code of Conduct, and will communicate reasons for moderation -decisions when appropriate. - -## Scope - -This Code of Conduct applies within all community spaces, and also applies when -an individual is officially representing the community in public spaces. -Examples of representing our community include using an official e-mail address, -posting via an official social media account, or acting as an appointed -representative at an online or offline event. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement at -MCBU CENG Department. -All complaints will be reviewed and investigated promptly and fairly. - -All community leaders are obligated to respect the privacy and security of the -reporter of any incident. - -## Enforcement Guidelines - -Community leaders will follow these Community Impact Guidelines in determining -the consequences for any action they deem in violation of this Code of Conduct: - -### 1. Correction - -**Community Impact**: Use of inappropriate language or other behavior deemed -unprofessional or unwelcome in the community. - -**Consequence**: A private, written warning from community leaders, providing -clarity around the nature of the violation and an explanation of why the -behavior was inappropriate. A public apology may be requested. - -### 2. Warning - -**Community Impact**: A violation through a single incident or series -of actions. - -**Consequence**: A warning with consequences for continued behavior. No -interaction with the people involved, including unsolicited interaction with -those enforcing the Code of Conduct, for a specified period of time. This -includes avoiding interactions in community spaces as well as external channels -like social media. Violating these terms may lead to a temporary or -permanent ban. - -### 3. Temporary Ban - -**Community Impact**: A serious violation of community standards, including -sustained inappropriate behavior. - -**Consequence**: A temporary ban from any sort of interaction or public -communication with the community for a specified period of time. No public or -private interaction with the people involved, including unsolicited interaction -with those enforcing the Code of Conduct, is allowed during this period. -Violating these terms may lead to a permanent ban. - -### 4. Permanent Ban - -**Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an -individual, or aggression toward or disparagement of classes of individuals. - -**Consequence**: A permanent ban from any sort of public interaction within -the community. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], -version 2.0, available at -https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. - -Community Impact Guidelines were inspired by [Mozilla's code of conduct -enforcement ladder](https://github.com/mozilla/diversity). - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see the FAQ at -https://www.contributor-covenant.org/faq. Translations are available at -https://www.contributor-covenant.org/translations. +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +MCBU CENG Department. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at +https://www.contributor-covenant.org/translations. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7195eec82..988e18d91 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,15 +1,15 @@ -First of all I want you to know that your contributions are welcome. - -You can commit your work every week to the folders WeekXX through the semester. - -Be sure that you have forked the original repository, and then create your file in your own forked repository. - -When you are ready to submit your file, commit your changes and then open a pull request. - -Your pull request will be reviewed by me and if there exist some tests will be run on your code. - -If there are some points that need to be changed in your code then I will send you a change request. - -If everything is ok, then I will merge your commit. - -Thanks a lot for your contributions. I hope this will be a good course for you. +First of all I want you to know that your contributions are welcome. + +You can commit your work every week to the folders WeekXX through the semester. + +Be sure that you have forked the original repository, and then create your file in your own forked repository. + +When you are ready to submit your file, commit your changes and then open a pull request. + +Your pull request will be reviewed by me and if there exist some tests will be run on your code. + +If there are some points that need to be changed in your code then I will send you a change request. + +If everything is ok, then I will merge your commit. + +Thanks a lot for your contributions. I hope this will be a good course for you. diff --git a/LICENSE b/LICENSE index 389643674..72e368252 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2023 Bora Canbula - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2023 Bora Canbula + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 50f556412..358516a2e 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,31 @@ -# Python Programming -Repository for Python Programming course given by Assoc. Prof. Dr. Bora Canbula -at Computer Engineering Department of Manisa Celal Bayar University. - -# Course Information -This course is about basic concepts in Python Programming. Students will learn the data structures, functions, classes, and the special structures of Python. They will also learn how to create basic desktop applications with a GUI, web applications as APIs, basic games as projects. In this course, we will use GitHub actions for assignments. Therefore, it is strongly recommended that to have a GitHub account for students. Students must fork this repository and sync frequently, add their works to their own repository and create a pull request. - -# Weekly Content -Lectures are on every Monday. You can find the codes that written in the laboratory in the folder WeekXX. - -# Lecture Notes and Problem Sets -In the root folder there is a LectureNotes.pdf file, which is updated weekly after every lecture. -At the end of the every chapter, you will also find a Problem Set. - -# Coding Homeworks -You can find some coding homeworks in the WeekXX folders, -which you should complete in your own forked repository -and send a pull request to the original repository. - -# Microsoft Teams -All announcements of this course will be done via Microsoft Teams. Join the group with the invite code: khfjfwr - -# Additional Resources -- [Python Documentation](https://docs.python.org/3/) -- [Python Tutorial](https://docs.python.org/3/tutorial/index.html) -- [Python Style Guide](https://www.python.org/dev/peps/pep-0008/) -- [Advanced Guide to Python 3 Programming](https://link.springer.com/book/10.1007/978-3-030-25943-3) (John Hunt) -- [Python for Everybody](https://www.py4e.com/book.php) (Charles Severance) - -# How to Create a Pull Request -https://github.com/canbula/Statistics/assets/5307181/1995892c-6e7b-40ce-be7f-8f16f1aee0e0 +# Python Programming +Repository for Python Programming course given by Assoc. Prof. Dr. Bora Canbula +at Computer Engineering Department of Manisa Celal Bayar University. + +# Course Information +This course is about basic concepts in Python Programming. Students will learn the data structures, functions, classes, and the special structures of Python. They will also learn how to create basic desktop applications with a GUI, web applications as APIs, basic games as projects. In this course, we will use GitHub actions for assignments. Therefore, it is strongly recommended that to have a GitHub account for students. Students must fork this repository and sync frequently, add their works to their own repository and create a pull request. + +# Weekly Content +Lectures are on every Monday. You can find the codes that written in the laboratory in the folder WeekXX. + +# Lecture Notes and Problem Sets +In the root folder there is a LectureNotes.pdf file, which is updated weekly after every lecture. +At the end of the every chapter, you will also find a Problem Set. + +# Coding Homeworks +You can find some coding homeworks in the WeekXX folders, +which you should complete in your own forked repository +and send a pull request to the original repository. + +# Microsoft Teams +All announcements of this course will be done via Microsoft Teams. Join the group with the invite code: khfjfwr + +# Additional Resources +- [Python Documentation](https://docs.python.org/3/) +- [Python Tutorial](https://docs.python.org/3/tutorial/index.html) +- [Python Style Guide](https://www.python.org/dev/peps/pep-0008/) +- [Advanced Guide to Python 3 Programming](https://link.springer.com/book/10.1007/978-3-030-25943-3) (John Hunt) +- [Python for Everybody](https://www.py4e.com/book.php) (Charles Severance) + +# How to Create a Pull Request +https://github.com/canbula/Statistics/assets/5307181/1995892c-6e7b-40ce-be7f-8f16f1aee0e0 diff --git a/SECURITY.md b/SECURITY.md index 7aa459be2..40f8e34d7 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,9 +1,9 @@ -# Security Policy - -## Supported Versions - -This repository will not get any security update. - -## Reporting a Vulnerability - -If you want to report a vulnerability about this repository then contact me by sending an e-mail to bora.canbula@cbu.edu.tr +# Security Policy + +## Supported Versions + +This repository will not get any security update. + +## Reporting a Vulnerability + +If you want to report a vulnerability about this repository then contact me by sending an e-mail to bora.canbula@cbu.edu.tr diff --git a/Week01/info_afra_inanc.py b/Week01/info_afra_inanc.py index 4849caf22..f047dc2a5 100644 --- a/Week01/info_afra_inanc.py +++ b/Week01/info_afra_inanc.py @@ -1,2 +1,2 @@ -student_id = "220316031" -full_name = "Afra İNANÇ" +student_id = "220316031" +full_name = "Afra İNANÇ" diff --git a/Week01/info_ahmet_murat_akarsu.py b/Week01/info_ahmet_murat_akarsu.py index 2d9a024b5..7ec698141 100644 --- a/Week01/info_ahmet_murat_akarsu.py +++ b/Week01/info_ahmet_murat_akarsu.py @@ -1,2 +1,2 @@ -student_id = "220315108" +student_id = "220315108" full_name = "Ahmet Murat Akarsu" \ No newline at end of file diff --git a/Week01/info_ayca_selda_keskin.py b/Week01/info_ayca_selda_keskin.py index 6b4559cae..85677106f 100644 --- a/Week01/info_ayca_selda_keskin.py +++ b/Week01/info_ayca_selda_keskin.py @@ -1,2 +1,2 @@ -student_id = "220316054" -full_name = "Ayça Selda Keskin" +student_id = "220316054" +full_name = "Ayça Selda Keskin" diff --git a/Week01/info_batuhan_tunc.py b/Week01/info_batuhan_tunc.py index 05d73c413..ba57c98e5 100644 --- a/Week01/info_batuhan_tunc.py +++ b/Week01/info_batuhan_tunc.py @@ -1,2 +1,2 @@ -student_id = "240315001" -full_name = "Batuhan Tunç" +student_id = "240315001" +full_name = "Batuhan Tunç" diff --git a/Week01/info_berat_uzdil.py b/Week01/info_berat_uzdil.py index 5f0750ea5..ef9bb0312 100644 --- a/Week01/info_berat_uzdil.py +++ b/Week01/info_berat_uzdil.py @@ -1,2 +1,2 @@ -student_id = "230316043" +student_id = "230316043" full_name = "Berat Uzdil" \ No newline at end of file diff --git a/Week01/info_beytullah_arslan.py b/Week01/info_beytullah_arslan.py index a0aa3a986..5d72e5767 100644 --- a/Week01/info_beytullah_arslan.py +++ b/Week01/info_beytullah_arslan.py @@ -1,2 +1,2 @@ -student_id = "240315007" -full_name = "Beytullah Arslan" +student_id = "240315007" +full_name = "Beytullah Arslan" diff --git a/Week01/info_caner_gundas.py b/Week01/info_caner_gundas.py index 25f3c08f9..79418453a 100644 --- a/Week01/info_caner_gundas.py +++ b/Week01/info_caner_gundas.py @@ -1,2 +1,2 @@ -student_id = "230316044" -full_name = "Caner Gündaş" +student_id = "230316044" +full_name = "Caner Gündaş" diff --git a/Week01/info_egehan_hatipoglu.py b/Week01/info_egehan_hatipoglu.py index 8140e776b..5795a44ea 100644 --- a/Week01/info_egehan_hatipoglu.py +++ b/Week01/info_egehan_hatipoglu.py @@ -1,2 +1,2 @@ -student_id = "230316064" -full_name = "Egehan Hatipoglu" +student_id = "230316064" +full_name = "Egehan Hatipoglu" diff --git a/Week01/info_elif_gulseren.py b/Week01/info_elif_gulseren.py index 0499cd02c..3bd191ed5 100644 --- a/Week01/info_elif_gulseren.py +++ b/Week01/info_elif_gulseren.py @@ -1,2 +1,2 @@ -student_id = "230315083" -full_name = "Elif Gülseren" +student_id = "230315083" +full_name = "Elif Gülseren" diff --git a/Week01/info_enes_karakus.py b/Week01/info_enes_karakus.py index 2f39ce8f0..9f986ac13 100644 --- a/Week01/info_enes_karakus.py +++ b/Week01/info_enes_karakus.py @@ -1,2 +1,2 @@ -student_id = "220315054" -full_name = "Enes Karakus" +student_id = "220315054" +full_name = "Enes Karakus" diff --git a/Week01/info_erban_gurcan.py b/Week01/info_erban_gurcan.py index f0b6e79e3..7b435b5e0 100644 --- a/Week01/info_erban_gurcan.py +++ b/Week01/info_erban_gurcan.py @@ -1,2 +1,2 @@ -student_id = "220316047" -full_name = "Erban Gürcan" +student_id = "220316047" +full_name = "Erban Gürcan" diff --git a/Week01/info_esra_sepik.py b/Week01/info_esra_sepik.py index e59479cb2..75a6b5bfc 100644 --- a/Week01/info_esra_sepik.py +++ b/Week01/info_esra_sepik.py @@ -1,2 +1,2 @@ -student_id = "220315015" +student_id = "220315015" full_name = "Esra Sepik" \ No newline at end of file diff --git a/Week01/info_furkan_kilic.py b/Week01/info_furkan_kilic.py index 716d0181d..f950ef510 100644 --- a/Week01/info_furkan_kilic.py +++ b/Week01/info_furkan_kilic.py @@ -1,2 +1,2 @@ -student_id = "220316053" -full_name = "Furkan Kılıç" +student_id = "220316053" +full_name = "Furkan Kılıç" diff --git a/Week01/info_hilmican_karadag.py b/Week01/info_hilmican_karadag.py index ec0442609..e4fe2de9c 100644 --- a/Week01/info_hilmican_karadag.py +++ b/Week01/info_hilmican_karadag.py @@ -1,2 +1,2 @@ -student_id = "220315100" -full_name = "Hilmican Karadag" +student_id = "220315100" +full_name = "Hilmican Karadag" diff --git a/Week01/info_ilknur_alpnar.py b/Week01/info_ilknur_alpnar.py index b5733c917..dcd882cc8 100644 --- a/Week01/info_ilknur_alpnar.py +++ b/Week01/info_ilknur_alpnar.py @@ -1,2 +1,2 @@ -student_id = "230316054" -full_name = "İlknur Alpnar" +student_id = "230316054" +full_name = "İlknur Alpnar" diff --git a/Week01/info_ilyas_bugra_filoglu.py b/Week01/info_ilyas_bugra_filoglu.py index 24231b87d..32c2aaf38 100644 --- a/Week01/info_ilyas_bugra_filoglu.py +++ b/Week01/info_ilyas_bugra_filoglu.py @@ -1,2 +1,2 @@ -student_id = "230315014" -full_name = "İlyas Buğra Filoğlu" +student_id = "230315014" +full_name = "İlyas Buğra Filoğlu" diff --git a/Week01/info_kamil_ibrahimli.py b/Week01/info_kamil_ibrahimli.py index 812be7c7a..f1dc65494 100644 --- a/Week01/info_kamil_ibrahimli.py +++ b/Week01/info_kamil_ibrahimli.py @@ -1,2 +1,2 @@ -student_id = "190315001" -full_name = " Kamil Ibrahimli " +student_id = "190315001" +full_name = " Kamil Ibrahimli " diff --git a/Week01/info_kayra_hokenek.py b/Week01/info_kayra_hokenek.py index 5dafd95bd..9cff1d927 100644 --- a/Week01/info_kayra_hokenek.py +++ b/Week01/info_kayra_hokenek.py @@ -1,2 +1,2 @@ -student_id = "230315048" -full_name = "Kayra Hökenek" +student_id = "230315048" +full_name = "Kayra Hökenek" diff --git a/Week01/info_kayra_oz.py b/Week01/info_kayra_oz.py index 20f505220..afcfe63e9 100644 --- a/Week01/info_kayra_oz.py +++ b/Week01/info_kayra_oz.py @@ -1,2 +1,2 @@ -student_id = "244101021" -full_name = "Kayra Öz" +student_id = "244101021" +full_name = "Kayra Öz" diff --git a/Week01/info_kayraemre_karaosmanoglu.py b/Week01/info_kayraemre_karaosmanoglu.py index 4e0f3759e..a8fd4b0fb 100644 --- a/Week01/info_kayraemre_karaosmanoglu.py +++ b/Week01/info_kayraemre_karaosmanoglu.py @@ -1,2 +1,2 @@ -student_id = "230315073" -full_name = "Kayra Emre Karaosmanoğlu" +student_id = "230315073" +full_name = "Kayra Emre Karaosmanoğlu" diff --git a/Week01/info_khazar_abdullayev.py b/Week01/info_khazar_abdullayev.py index 9d4f35fd9..af243be5e 100644 --- a/Week01/info_khazar_abdullayev.py +++ b/Week01/info_khazar_abdullayev.py @@ -1,2 +1,2 @@ -student_id = "244101083" -full_name = "Khazar Abdullayev" +student_id = "244101083" +full_name = "Khazar Abdullayev" diff --git a/Week01/info_mehmet_hamza_ogretmis.py b/Week01/info_mehmet_hamza_ogretmis.py index d9d76a240..7d668ac0e 100644 --- a/Week01/info_mehmet_hamza_ogretmis.py +++ b/Week01/info_mehmet_hamza_ogretmis.py @@ -1,2 +1,2 @@ -student_id = "244101073" +student_id = "244101073" full_name = "Mehmet Hamza Öğretmiş" \ No newline at end of file diff --git a/Week01/info_mehmet_mert_yigit.py b/Week01/info_mehmet_mert_yigit.py index 2ab3d64f5..a8eb39d31 100644 --- a/Week01/info_mehmet_mert_yigit.py +++ b/Week01/info_mehmet_mert_yigit.py @@ -1,2 +1,2 @@ -student_id = "220315103" -full_name = "Mehmet Mert Yiğit" +student_id = "220315103" +full_name = "Mehmet Mert Yiğit" diff --git a/Week01/info_mustafa_uysal.py b/Week01/info_mustafa_uysal.py index 39c9694dc..371502526 100644 --- a/Week01/info_mustafa_uysal.py +++ b/Week01/info_mustafa_uysal.py @@ -1,2 +1,2 @@ -student_id = "230316042" -full_name = "Mustafa Uysal" +student_id = "230316042" +full_name = "Mustafa Uysal" diff --git a/Week01/info_nazmi_emir_ozer.py b/Week01/info_nazmi_emir_ozer.py index d2a4a4b54..59928c7a1 100644 --- a/Week01/info_nazmi_emir_ozer.py +++ b/Week01/info_nazmi_emir_ozer.py @@ -1,2 +1,2 @@ -student_id = "230316070" +student_id = "230316070" full_name = "Nazmi Emir Özer" \ No newline at end of file diff --git a/Week01/info_omer_kayaalp.py b/Week01/info_omer_kayaalp.py index ce70bb229..4a4a571c3 100644 --- a/Week01/info_omer_kayaalp.py +++ b/Week01/info_omer_kayaalp.py @@ -1,2 +1,2 @@ -student_id = "230315035" -full_name = "Ömer Kayaalp" +student_id = "230315035" +full_name = "Ömer Kayaalp" diff --git a/Week01/info_pelin_akkus.py b/Week01/info_pelin_akkus.py index 9443b27c8..011f2ddd6 100644 --- a/Week01/info_pelin_akkus.py +++ b/Week01/info_pelin_akkus.py @@ -1,2 +1,2 @@ -student_id = "230315027" -full_name = "Pelin Akkuş" +student_id = "230315027" +full_name = "Pelin Akkuş" diff --git a/Week01/info_saliha_sumeyye_comert.py b/Week01/info_saliha_sumeyye_comert.py index 1311eb50d..262c1c1e7 100644 --- a/Week01/info_saliha_sumeyye_comert.py +++ b/Week01/info_saliha_sumeyye_comert.py @@ -1,3 +1,3 @@ -student_id ="220316006" -full_name = "Saliha Sümeyye CÖMERT" - +student_id ="220316006" +full_name = "Saliha Sümeyye CÖMERT" + diff --git a/Week01/info_sedasengul_ozkaya.py b/Week01/info_sedasengul_ozkaya.py index 94a94a059..187750ea9 100644 --- a/Week01/info_sedasengul_ozkaya.py +++ b/Week01/info_sedasengul_ozkaya.py @@ -1,2 +1,2 @@ -student_id = "230316033" -full_name = "Seda Şengül Özkaya" +student_id = "230316033" +full_name = "Seda Şengül Özkaya" diff --git a/Week01/info_umut_turk.py b/Week01/info_umut_turk.py index b69a135aa..6d6091294 100644 --- a/Week01/info_umut_turk.py +++ b/Week01/info_umut_turk.py @@ -1,2 +1,2 @@ -student_id = "230315070" +student_id = "230315070" full_name = "Umut Türk" \ No newline at end of file diff --git a/Week01/info_yagiz_cengiz.py b/Week01/info_yagiz_cengiz.py index 677fa2425..f1ebba567 100644 --- a/Week01/info_yagiz_cengiz.py +++ b/Week01/info_yagiz_cengiz.py @@ -1,2 +1,2 @@ -student_id = "230315076" -full_name = "Yagiz Cengiz" +student_id = "230315076" +full_name = "Yagiz Cengiz" diff --git a/Week01/info_yasarmert_turkmen.py b/Week01/info_yasarmert_turkmen.py index d3b8c7244..0a39a4013 100644 --- a/Week01/info_yasarmert_turkmen.py +++ b/Week01/info_yasarmert_turkmen.py @@ -1,2 +1,2 @@ -student_id = "244101081" -full_name = "Yaşar Mert Türkmen" +student_id = "244101081" +full_name = "Yaşar Mert Türkmen" diff --git a/Week01/info_yasin_buyuktepe.py b/Week01/info_yasin_buyuktepe.py index 1f422cb05..407fe03f4 100644 --- a/Week01/info_yasin_buyuktepe.py +++ b/Week01/info_yasin_buyuktepe.py @@ -1,2 +1,2 @@ -student_id = "230315029" -full_name = "Yasin Büyüktepe" +student_id = "230315029" +full_name = "Yasin Büyüktepe" diff --git a/Week01/info_yusuf_baris.py b/Week01/info_yusuf_baris.py index b38f19e4b..f10bb6a5e 100644 --- a/Week01/info_yusuf_baris.py +++ b/Week01/info_yusuf_baris.py @@ -1,2 +1,2 @@ -student_id = "220315016" -full_name = "Yusuf BARIŞ" +student_id = "220315016" +full_name = "Yusuf BARIŞ" diff --git a/Week01/info_zahra_ismayilli.py b/Week01/info_zahra_ismayilli.py index 3a50e835e..6fc048a3c 100644 --- a/Week01/info_zahra_ismayilli.py +++ b/Week01/info_zahra_ismayilli.py @@ -1,2 +1,2 @@ -student_id = "220315094" -full_name = "Zahra Ismayilli" +student_id = "220315094" +full_name = "Zahra Ismayilli" diff --git a/Week01/test_info.py b/Week01/test_info.py index 0f70a6296..082e7609c 100644 --- a/Week01/test_info.py +++ b/Week01/test_info.py @@ -1,25 +1,25 @@ -import os - - -files = [f for f in os.listdir(os.path.dirname(__file__)) if f.startswith("info")] -for f in files: - exec("import " + f[:-3] + " as " + f[:-3]) - print(f"The module {f[:-3]} has been imported.") - - -def test_names(): - for f in files: - assert "student_id" in dir(eval(f[:-3])), ( - "student_id is not defined in " + f[:-3] - ) - assert "full_name" in dir(eval(f[:-3])), "full_name is not defined in " + f[:-3] - - -def test_types(): - for f in files: - assert isinstance(eval(f[:-3]).student_id, str), ( - "student_id is not a string in " + f[:-3] - ) - assert isinstance(eval(f[:-3]).full_name, str), ( - "full_name is not a string in " + f[:-3] - ) +import os + + +files = [f for f in os.listdir(os.path.dirname(__file__)) if f.startswith("info")] +for f in files: + exec("import " + f[:-3] + " as " + f[:-3]) + print(f"The module {f[:-3]} has been imported.") + + +def test_names(): + for f in files: + assert "student_id" in dir(eval(f[:-3])), ( + "student_id is not defined in " + f[:-3] + ) + assert "full_name" in dir(eval(f[:-3])), "full_name is not defined in " + f[:-3] + + +def test_types(): + for f in files: + assert isinstance(eval(f[:-3]).student_id, str), ( + "student_id is not a string in " + f[:-3] + ) + assert isinstance(eval(f[:-3]).full_name, str), ( + "full_name is not a string in " + f[:-3] + ) diff --git a/Week02/test_types.py b/Week02/test_types.py index 198da54a3..18c38637a 100644 --- a/Week02/test_types.py +++ b/Week02/test_types.py @@ -1,31 +1,31 @@ -import os - - -files = [f for f in os.listdir(os.path.dirname(__file__)) if f.startswith("types")] -for f in files: - exec("import " + f[:-3] + " as " + f[:-3]) - print(f"The module {f[:-3]} has been imported.") - - -def test_names(): - for f in files: - assert "my_int" in dir(eval(f[:-3])), "my_int is not defined in " + f[:-3] - assert "my_float" in dir(eval(f[:-3])), "my_float is not defined in " + f[:-3] - assert "my_bool" in dir(eval(f[:-3])), "my_bool is not defined in " + f[:-3] - assert "my_complex" in dir(eval(f[:-3])), ( - "my_complex is not defined in " + f[:-3] - ) - - -def test_types(): - for f in files: - assert isinstance(eval(f[:-3]).my_int, int), "my_int is not an int in " + f[:-3] - assert isinstance(eval(f[:-3]).my_float, float), ( - "my_float is not a float in " + f[:-3] - ) - assert isinstance(eval(f[:-3]).my_bool, bool), ( - "my_bool is not a bool in " + f[:-3] - ) - assert isinstance(eval(f[:-3]).my_complex, complex), ( - "my_complex is not a complex in " + f[:-3] - ) +import os + + +files = [f for f in os.listdir(os.path.dirname(__file__)) if f.startswith("types")] +for f in files: + exec("import " + f[:-3] + " as " + f[:-3]) + print(f"The module {f[:-3]} has been imported.") + + +def test_names(): + for f in files: + assert "my_int" in dir(eval(f[:-3])), "my_int is not defined in " + f[:-3] + assert "my_float" in dir(eval(f[:-3])), "my_float is not defined in " + f[:-3] + assert "my_bool" in dir(eval(f[:-3])), "my_bool is not defined in " + f[:-3] + assert "my_complex" in dir(eval(f[:-3])), ( + "my_complex is not defined in " + f[:-3] + ) + + +def test_types(): + for f in files: + assert isinstance(eval(f[:-3]).my_int, int), "my_int is not an int in " + f[:-3] + assert isinstance(eval(f[:-3]).my_float, float), ( + "my_float is not a float in " + f[:-3] + ) + assert isinstance(eval(f[:-3]).my_bool, bool), ( + "my_bool is not a bool in " + f[:-3] + ) + assert isinstance(eval(f[:-3]).my_complex, complex), ( + "my_complex is not a complex in " + f[:-3] + ) diff --git a/Week02/types_mehmet_hamza_ogretmis.py b/Week02/types_mehmet_hamza_ogretmis.py index 59e5cfd4f..edc58bf37 100644 --- a/Week02/types_mehmet_hamza_ogretmis.py +++ b/Week02/types_mehmet_hamza_ogretmis.py @@ -1,4 +1,4 @@ -my_int = 5 -my_float = 5.12 -my_bool = True +my_int = 5 +my_float = 5.12 +my_bool = True my_complex = 5j \ No newline at end of file diff --git a/Week03/test_pyramid.py b/Week03/test_pyramid.py index 2c8c6f251..d6caa0a83 100644 --- a/Week03/test_pyramid.py +++ b/Week03/test_pyramid.py @@ -1,52 +1,52 @@ -import os - - -files = [f for f in os.listdir(os.path.dirname(__file__)) if f.startswith("pyramid")] -for f in files: - exec("import " + f[:-3] + " as " + f[:-3]) - print(f"The module {f[:-3]} has been imported.") - - -def test_names(): - for f in files: - assert "calculate_pyramid_height" in dir(eval(f[:-3])), ( - "calculate_pyramid_height is not defined in " + f[:-3] - ) - - -def test_types(): - for f in files: - assert callable(eval(f[:-3]).calculate_pyramid_height), ( - "calculate_pyramid_height is not callable in " + f[:-3] - ) - assert isinstance(eval(f[:-3]).calculate_pyramid_height(1), int), ( - "calculate_pyramid_height is not returning an int in " + f[:-3] - ) - - -def test_calculate_pyramid_height(): - for f in files: - assert eval(f[:-3]).calculate_pyramid_height(1) == 1, ( - "calculate_pyramid_height is not working in " + f[:-3] - ) - assert eval(f[:-3]).calculate_pyramid_height(2) == 1, ( - "calculate_pyramid_height is not working in " + f[:-3] - ) - assert eval(f[:-3]).calculate_pyramid_height(6) == 3, ( - "calculate_pyramid_height is not working in " + f[:-3] - ) - assert eval(f[:-3]).calculate_pyramid_height(20) == 5, ( - "calculate_pyramid_height is not working in " + f[:-3] - ) - assert eval(f[:-3]).calculate_pyramid_height(100) == 13, ( - "calculate_pyramid_height is not working in " + f[:-3] - ) - assert eval(f[:-3]).calculate_pyramid_height(1000) == 44, ( - "calculate_pyramid_height is not working in " + f[:-3] - ) - assert eval(f[:-3]).calculate_pyramid_height(10000) == 140, ( - "calculate_pyramid_height is not working in " + f[:-3] - ) - assert eval(f[:-3]).calculate_pyramid_height(100000) == 446, ( - "calculate_pyramid_height is not working in " + f[:-3] - ) +import os + + +files = [f for f in os.listdir(os.path.dirname(__file__)) if f.startswith("pyramid")] +for f in files: + exec("import " + f[:-3] + " as " + f[:-3]) + print(f"The module {f[:-3]} has been imported.") + + +def test_names(): + for f in files: + assert "calculate_pyramid_height" in dir(eval(f[:-3])), ( + "calculate_pyramid_height is not defined in " + f[:-3] + ) + + +def test_types(): + for f in files: + assert callable(eval(f[:-3]).calculate_pyramid_height), ( + "calculate_pyramid_height is not callable in " + f[:-3] + ) + assert isinstance(eval(f[:-3]).calculate_pyramid_height(1), int), ( + "calculate_pyramid_height is not returning an int in " + f[:-3] + ) + + +def test_calculate_pyramid_height(): + for f in files: + assert eval(f[:-3]).calculate_pyramid_height(1) == 1, ( + "calculate_pyramid_height is not working in " + f[:-3] + ) + assert eval(f[:-3]).calculate_pyramid_height(2) == 1, ( + "calculate_pyramid_height is not working in " + f[:-3] + ) + assert eval(f[:-3]).calculate_pyramid_height(6) == 3, ( + "calculate_pyramid_height is not working in " + f[:-3] + ) + assert eval(f[:-3]).calculate_pyramid_height(20) == 5, ( + "calculate_pyramid_height is not working in " + f[:-3] + ) + assert eval(f[:-3]).calculate_pyramid_height(100) == 13, ( + "calculate_pyramid_height is not working in " + f[:-3] + ) + assert eval(f[:-3]).calculate_pyramid_height(1000) == 44, ( + "calculate_pyramid_height is not working in " + f[:-3] + ) + assert eval(f[:-3]).calculate_pyramid_height(10000) == 140, ( + "calculate_pyramid_height is not working in " + f[:-3] + ) + assert eval(f[:-3]).calculate_pyramid_height(100000) == 446, ( + "calculate_pyramid_height is not working in " + f[:-3] + ) diff --git a/Week03/test_sequences.py b/Week03/test_sequences.py index 94536f98c..b68b19a0f 100644 --- a/Week03/test_sequences.py +++ b/Week03/test_sequences.py @@ -1,118 +1,118 @@ -import os - - -files = [f for f in os.listdir(os.path.dirname(__file__)) if f.startswith("sequences")] -for f in files: - exec("import " + f[:-3] + " as " + f[:-3]) - print(f"The module {f[:-3]} has been imported.") - - -def test_names(): - for f in files: - assert "remove_duplicates" in dir(eval(f[:-3])), ( - "remove_duplicates is not defined in " + f[:-3] - ) - assert "list_counts" in dir(eval(f[:-3])), ( - "list_counts is not defined in " + f[:-3] - ) - assert "reverse_dict" in dir(eval(f[:-3])), ( - "reverse_dict is not defined in " + f[:-3] - ) - - -def test_types(): - for f in files: - assert callable(eval(f[:-3]).remove_duplicates), ( - "remove_duplicates is not callable in " + f[:-3] - ) - assert callable(eval(f[:-3]).list_counts), ( - "list_counts is not callable in " + f[:-3] - ) - assert callable(eval(f[:-3]).reverse_dict), ( - "reverse_dict is not callable in " + f[:-3] - ) - assert isinstance(eval(f[:-3]).remove_duplicates([1, 2, 3, 4, 5, 6]), list), ( - "remove_duplicates is not returning a list in " + f[:-3] - ) - assert isinstance(eval(f[:-3]).list_counts([1, 2, 3, 4, 5, 6]), dict), ( - "list_counts is not returning a dict in " + f[:-3] - ) - assert isinstance(eval(f[:-3]).reverse_dict({1: 1, 2: 2, 3: 3}), dict), ( - "reverse_dict is not returning a dict in " + f[:-3] - ) - - -def test_remove_duplicates(): - for f in files: - assert eval(f[:-3]).remove_duplicates([1, 2, 3, 3, 4, 5, 5, 5, 6]) == [ - 1, - 2, - 3, - 4, - 5, - 6, - ], ( - "remove_duplicates is not working in " + f[:-3] - ) - assert eval(f[:-3]).remove_duplicates([1, 2, 3, 4, 5, 6]) == [ - 1, - 2, - 3, - 4, - 5, - 6, - ], ( - "remove_duplicates is not working in " + f[:-3] - ) - assert eval(f[:-3]).remove_duplicates([1, 1, 1, 1, 1, 1]) == [1], ( - "remove_duplicates is not working in " + f[:-3] - ) - assert eval(f[:-3]).remove_duplicates([]) == [], ( - "remove_duplicates is not working in " + f[:-3] - ) - - -def test_list_counts(): - for f in files: - assert eval(f[:-3]).list_counts([1, 2, 3, 3, 4, 5, 5, 5, 6]) == { - 1: 1, - 2: 1, - 3: 2, - 4: 1, - 5: 3, - 6: 1, - }, ( - "list_counts is not working in " + f[:-3] - ) - assert eval(f[:-3]).list_counts([1, 2, 3, 4, 5, 6]) == { - 1: 1, - 2: 1, - 3: 1, - 4: 1, - 5: 1, - 6: 1, - }, ( - "list_counts is not working in " + f[:-3] - ) - assert eval(f[:-3]).list_counts([1, 1, 1, 1, 1, 1]) == {1: 6}, ( - "list_counts is not working in " + f[:-3] - ) - assert eval(f[:-3]).list_counts([]) == {}, ( - "list_counts is not working in " + f[:-3] - ) - - -def test_reverse_dict(): - for f in files: - assert eval(f[:-3]).reverse_dict({1: 1, 2: 2, 3: 3}) == {1: 1, 2: 2, 3: 3}, ( - "reverse_dict is not working in " + f[:-3] - ) - assert eval(f[:-3]).reverse_dict({1: 2, 2: 3, 3: 4}) == {2: 1, 3: 2, 4: 3}, ( - "reverse_dict is not working in " + f[:-3] - ) - assert eval(f[:-3]).reverse_dict({1: 1, 2: 1, 3: 1}) == {1: 3}, ( - "reverse_dict is not working in " + f[:-3] - ) - assert eval(f[:-3]).reverse_dict({}) == {}, ( - "reverse_dict is not working in " + f[:-3] - ) +import os + + +files = [f for f in os.listdir(os.path.dirname(__file__)) if f.startswith("sequences")] +for f in files: + exec("import " + f[:-3] + " as " + f[:-3]) + print(f"The module {f[:-3]} has been imported.") + + +def test_names(): + for f in files: + assert "remove_duplicates" in dir(eval(f[:-3])), ( + "remove_duplicates is not defined in " + f[:-3] + ) + assert "list_counts" in dir(eval(f[:-3])), ( + "list_counts is not defined in " + f[:-3] + ) + assert "reverse_dict" in dir(eval(f[:-3])), ( + "reverse_dict is not defined in " + f[:-3] + ) + + +def test_types(): + for f in files: + assert callable(eval(f[:-3]).remove_duplicates), ( + "remove_duplicates is not callable in " + f[:-3] + ) + assert callable(eval(f[:-3]).list_counts), ( + "list_counts is not callable in " + f[:-3] + ) + assert callable(eval(f[:-3]).reverse_dict), ( + "reverse_dict is not callable in " + f[:-3] + ) + assert isinstance(eval(f[:-3]).remove_duplicates([1, 2, 3, 4, 5, 6]), list), ( + "remove_duplicates is not returning a list in " + f[:-3] + ) + assert isinstance(eval(f[:-3]).list_counts([1, 2, 3, 4, 5, 6]), dict), ( + "list_counts is not returning a dict in " + f[:-3] + ) + assert isinstance(eval(f[:-3]).reverse_dict({1: 1, 2: 2, 3: 3}), dict), ( + "reverse_dict is not returning a dict in " + f[:-3] + ) + + +def test_remove_duplicates(): + for f in files: + assert eval(f[:-3]).remove_duplicates([1, 2, 3, 3, 4, 5, 5, 5, 6]) == [ + 1, + 2, + 3, + 4, + 5, + 6, + ], ( + "remove_duplicates is not working in " + f[:-3] + ) + assert eval(f[:-3]).remove_duplicates([1, 2, 3, 4, 5, 6]) == [ + 1, + 2, + 3, + 4, + 5, + 6, + ], ( + "remove_duplicates is not working in " + f[:-3] + ) + assert eval(f[:-3]).remove_duplicates([1, 1, 1, 1, 1, 1]) == [1], ( + "remove_duplicates is not working in " + f[:-3] + ) + assert eval(f[:-3]).remove_duplicates([]) == [], ( + "remove_duplicates is not working in " + f[:-3] + ) + + +def test_list_counts(): + for f in files: + assert eval(f[:-3]).list_counts([1, 2, 3, 3, 4, 5, 5, 5, 6]) == { + 1: 1, + 2: 1, + 3: 2, + 4: 1, + 5: 3, + 6: 1, + }, ( + "list_counts is not working in " + f[:-3] + ) + assert eval(f[:-3]).list_counts([1, 2, 3, 4, 5, 6]) == { + 1: 1, + 2: 1, + 3: 1, + 4: 1, + 5: 1, + 6: 1, + }, ( + "list_counts is not working in " + f[:-3] + ) + assert eval(f[:-3]).list_counts([1, 1, 1, 1, 1, 1]) == {1: 6}, ( + "list_counts is not working in " + f[:-3] + ) + assert eval(f[:-3]).list_counts([]) == {}, ( + "list_counts is not working in " + f[:-3] + ) + + +def test_reverse_dict(): + for f in files: + assert eval(f[:-3]).reverse_dict({1: 1, 2: 2, 3: 3}) == {1: 1, 2: 2, 3: 3}, ( + "reverse_dict is not working in " + f[:-3] + ) + assert eval(f[:-3]).reverse_dict({1: 2, 2: 3, 3: 4}) == {2: 1, 3: 2, 4: 3}, ( + "reverse_dict is not working in " + f[:-3] + ) + assert eval(f[:-3]).reverse_dict({1: 1, 2: 1, 3: 1}) == {1: 3}, ( + "reverse_dict is not working in " + f[:-3] + ) + assert eval(f[:-3]).reverse_dict({}) == {}, ( + "reverse_dict is not working in " + f[:-3] + ) diff --git a/pull_request_template.md b/pull_request_template.md index 252a7f4b2..c6f381635 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -1,10 +1,10 @@ -## Describe your changes - -## Checklist -- [ ] I have read the [CONTRIBUTING] -- [ ] I have performed a self-review of my own code -- [ ] I have run the code locally and it works as expected -- [ ] I have commented my code, particularly in hard-to-understand areas - -## Screenshots (if appropriate) - +## Describe your changes + +## Checklist +- [ ] I have read the [CONTRIBUTING] +- [ ] I have performed a self-review of my own code +- [ ] I have run the code locally and it works as expected +- [ ] I have commented my code, particularly in hard-to-understand areas + +## Screenshots (if appropriate) +