====== be5b33prg -- Programming Essentials ====== The course focuses on understanding and mastering basic design principles of algorithms. It develops data abstraction coupled with the essential programming patterns. The emphasis is on creating readable and reusable programs in Python. ( [[courses:be5b33prg:labs:start|]] | [[courses:be5b33prg:tutorials:start|]] | [[resources]] [[https://fel.cvut.cz/en/education/rozvrhy-ng.B211/public/html/predmety/43/55/p4355706.html|BE5B33PRG TIME SCHEDULE (EN)]]) ===== News ===== //Information announced during the semester will be put here// * The oral part of exam 8.2. will take place from 12:15 at KN:E-128. See the [[https://cmp.felk.cvut.cz/~jenicto2/export/be5b33prg/oral_2022.html|approximate timeline]]. * Exam 8.2. starts at 8:30, 30 minutes earlier than originally announced * The oral part of exam 19.1. will take place from 11:45 at KN:E-128.. * The final exam dates announced (19.1. and 8.2.), see KOS for details. /* * Room change for end-of-term, lecture 12 (10.12.) - KN:E-301 ([[https://fel.cvut.cz/cz/glance/rooms/E3.png|same building, between floors 2 and 3]]) * Room change for lecture 11 (3.12.) - KN:G-205 ([[https://cyber.felk.cvut.cz/department/contacts/#maps|building G]]) * The format of the end-of-term test announced, see below. * The format of the midterm test announced, see below. */ ====== Lectures ====== **Where and when:** KN:E-301 ([[https://cyber.felk.cvut.cz/department/contacts/#maps|Charles Square, building E]]), Friday 09:15-10:45 **Teaching:** [[jenicto2@fel.cvut.cz|Tomas Jenicek]] PDF slides and other lecture materials will be made available during the semester. The lectures, however, will also include blackboard sessions as well as live coding demonstrations. Active participation in lectures is strongly recommended based on our experience from previous years. Two tests will be written during the lectures (Mid-term test and End-of-term test in the table below); attending those lectures is required. ^ week ^ date ^ topic ^ materials ^ | 1. | 23.09.2022 | Introduction. Variables, expressions. | {{ :courses:be5b33prg:lec01-intro-tj-2022.pdf | Slides 1 }}, {{ https://colab.research.google.com/drive/10yX_dSAqiC3V3oQ8xh9Ru0aMU6zSyZvx?usp=sharing | Notebook 1 }}, {{ https://colab.research.google.com/drive/1S5VVfGs0bZhQYXKIjJ3OyPCYs1Hl0B-c?usp=sharing | Demo 1 OCR }}, {{ https://colab.research.google.com/drive/1_NgtWZyJ4B1mxTvEABKrrLxzTtFzHo3R?usp=sharing | Demo 2 Face }}, {{ https://colab.research.google.com/drive/1Lg7uHdH7bCBmo_88alNebmRIIe7ch8b8?usp=sharing | Demo 3 Classification }} | | 2. | 30.09.2022 | Primitive data types, program flow | {{ :courses:be5b33prg:lec02-flow-tj-2022.pdf | Slides 2 }}, {{ https://colab.research.google.com/drive/1UXZ7Tg5FJ3yta4SQ7jpXu-NIoM-Me7Rq?usp=sharing | Revision 1 }}, {{ https://colab.research.google.com/drive/1Nwv4hzO7Im7LnJRZlz-r9_E15r9T6gxh?usp=sharing | Notebook 2 }} | | 3. | 07.10.2022 | Program structure, functions | {{ :courses:be5b33prg:lec03-functions-tj-2022.pdf | Slides 3 }}, {{ https://colab.research.google.com/drive/1ShfZuxHPwRtRmIYCgGnTY7uovxCmXVw3?usp=sharing | Revision 2 }}, {{ https://colab.research.google.com/drive/1ijj-o6NhQheavsvRl-GTm5tSk-u6VapP?usp=sharing | Notebook 3 }} | | 4. | 14.10.2022 | Sequence data types, traversals | {{ :courses:be5b33prg:lec04-compound-types-tj-2022.pdf | Slides 4 }}, {{ https://colab.research.google.com/drive/1FSDR_Xja9fS4BF42L0wNnKkJJ1eRvN0O?usp=sharing | Revision 3 }}, {{ https://colab.research.google.com/drive/1XNcyVdoXKalTaPVLcY5AFq7Jpp2ABg9U?usp=sharing | Notebook 4 }} | | 5. | 21.10.2022 | Collections (sets, dictionaries), iterators | {{ :courses:be5b33prg:lec05-collections-tj-2022.pdf | Slides 5 }}, {{ https://colab.research.google.com/drive/1WRm4NmHUlEuGfyJ7_0WIUN12yA7cS6P5?usp=sharing | Revision 4 }}, {{ https://colab.research.google.com/drive/1FctBWzjmpAx74NzohCYLA7H3oq-XcIf2?usp=sharing | Notebook 5 }} | | - | 28.10.2022 | //Holidays// | | 6. | 04.11.2022 | Modules, namespaces, conventions | {{ :courses:be5b33prg:lec06-modules-tj-2022.pdf | Slides 6 }}, {{ https://colab.research.google.com/drive/1O9n0jQzfHPEpWUi6gm_ztJWNM6N9pWjq?usp=sharing | Revision 5 }}, {{ :courses:be5b33prg:http_project.zip | http_project.zip }} | | 7. | 11.11.2022 | Mid-term test | | | 8. | 18.11.2022 | Filesystem, file reading and writing | {{ :courses:be5b33prg:lec08-files-tj-2022.pdf | Slides 8 }}, {{ :courses:be5b33prg:storage_project.zip | storage_project.zip }} | | 9. | 25.11.2022 | Debugging, code testing, exceptions | {{ :courses:be5b33prg:lec09-testing-exceptions-tj-2022.pdf | Slides 9 }}, {{ :courses:be5b33prg:password_project.zip | password_project.zip }} | | 10. | 02.12.2022 | Objects, classes I | {{ :courses:be5b33prg:lec10-classes-objects-tj-2022.pdf | Slides 10 }} | | 11. | 09.12.2022 | Objects, classes II | {{ :courses:be5b33prg:lec11-classes-objects-tj-2022.pdf | Slides 11 }}, {{ :courses:be5b33prg:euclidean.zip | euclidean.zip }} | | 12. | 16.12.2022 | End-of-term test | | | 13. | 13.01.2023 | Revision for the exam, Advanced concepts | {{ :courses:be5b33prg:lec13-advanced-tj-2022.pdf | Slides 13 }}, {{ :courses:be5b33prg:lec14-examples-tj-2022.pdf | Slides 14 }} /*, {{ :courses:be5b33prg:advanced_concepts.py | advanced_concepts.py }}* | ===== Individual Consultations ===== After agreement. Specific problems will be discussed hence come with open problems you are struggling with. You may consider studying one of the recommended online [[resources]] first. ===== Exams and Tests ===== There will be two tests during the semester (mid-term and end-of-term) and a final exam during the exam period. The format of both the exam and the mid-term/end-of-term tests will be specified during the semester. It is recommended that you go through pages [[ courses:be5b33prg:test_preparation | Preparing Yourself for the Tests ]] and [[courses:be5b33prg:labs:start#plagiarism|Plagiarism]]. The content of the exam / test will be based on the content of: - Lectures before the date of the exam / test (not limited but including the slides released after each lecture) - Exercises and home-works practiced before the date of the exam / test - Relevant chapters of the [[http://openbookproject.net/thinkcs/python/english3e/|Wentworth2012]] book - Collection of Python multiple-choice question to practice for the exam http://www.sanfoundry.com/1000-python-questions-answers/ related to the content of the lectures **Midterm** You need to **bring your laptop to the lecture**, or let me know that you need access to a school computer in advance. The test will be a programming assignment which you will complete on your computer. You are allowed to use any materials, internet, and IDE (PyCharm). It is **not allowed** to communicate with anyone (sending information or receiving), or to generate code automatically (e.g. via ChatGPT or GitHub Copilot). See the assignment from the last years -- {{ :courses:be5b33prg:midterm_2020.py | midterm_2020.py }}, {{ :courses:be5b33prg:midterm_2021.py | midterm_2021.py }}, {{ :courses:be5b33prg:midterm_2022.py | midterm_2022.py }}. **End-of-term** The end-of-term test will have the same format with the same rules as midterm, see above. See the assignment from the last years -- {{ :courses:be5b33prg:endofterm_2020.py | endofterm_2020.py }}, {{ :courses:be5b33prg:endofterm_2021.py | endofterm_2021.py }}, {{ :courses:be5b33prg:endofterm_2022.py | endofterm_2022.py }}. **Final exam** Once you pass the semester (obtain "zapocet" after the semester ends), use the Faculty information system [[https://kos.cvut.cz|KOS]] to enroll. The dates and rooms for each exam date are visible in KOS. You may take the exam 2 times (retake the exam 1 time), but only within the dates in KOS -- no more exam dates will be announced. The final exam will have two parts: programming part (2.5 hour in the morning, up to 25 points) and oral part (10-20 minutes in the afternoon, up to 10 points); you can get maximum 30 points in total. The programming part will be similar to the midterm and end-of-term tests, with the same rules but with more complex assignments. During the oral part, you will be asked questions about your solution and topics related to the assignment, in order to 1. refine your exam grading and 2. verify that the uploaded solution is your own original work. Failing to explain your work will result in failing the exam and disciplinary actions. The oral part is mandatory and must be taken the same day as the written part. During the oral part, no materials are allowed, except for an IDE on your computer. See the previous assignments -- {{ :courses:be5b33prg:exam_1_2020.txt | exam_1_2020.txt }}, {{ :courses:be5b33prg:exam_2_2020.txt | exam_2_2020.txt }}, {{ :courses:be5b33prg:exam_3_2020.txt | exam_3_2020.txt }}, and {{ :courses:be5b33prg:exam_1_2021.txt | exam_1_2021.txt }}, {{ :courses:be5b33prg:exam_2_2021.txt | exam_2_2021.txt }}, {{ :courses:be5b33prg:exam_3_2021.txt | exam_3_2021.txt }}, {{ :courses:be5b33prg:exam_1_2022.txt | exam_1_2022.txt }}, {{ :courses:be5b33prg:exam_2_2022.txt | exam_2_2022.txt }}. ===== Grading ===== Points: 50 homework (mostly coding), 20 tests during the term (2 tests, 10 points each), 30 final exam. At least 30 points (out of 70) and regular lab attendance are needed before going to the final exam (in order to obtain "zapocet"). At least 10 points (out of 30) are needed to pass the final exam. To pass the course and get a grade, "zapocet" must be obtained, exam passed and at least 51 points gained in total (see the table below). It is possible to get additional up to 20 points for extra activity during the semester, such as completing a bonus homework. ^ A ^ B ^ C ^ D ^ E ^ F ^ | 100-91 | 90-81 | 80-71| 70-61 | 60-51 | 50-0 | **F** means fail.