New pages
Jump to navigation
Jump to search
- 09:54, 27 January 2026 Last words (hist | edit) [631 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Changing existing code base |Next: Programme |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_13-LastWords.ppt Last words]<br> <!-- Resource: Example code - File Reading<br> --> == Subjects covered == Course summery<br> Standard libraries<br> Third party libraries<br> Optimization<...")
- 09:50, 27 January 2026 Runtime evaluation (hist | edit) [6,900 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Intermediate unit test |Next: Changing existing code base |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22113/Python10-Runtime.pptx Runtime evaluation of algorithms] Old ppt, not so important<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=41edc89b-61a5-475d-84d0-af2701271b5d Run...")
- 09:41, 27 January 2026 Example code - Unit test (hist | edit) [6,449 bytes] WikiSysop (talk | contribs) (Created page with "I decided to make some unit tests for my prime number generator, I used as an example last week, see Example code - Classes I make two files - one file containing the class ''PrimeGenerator.py'' and one file containing the tests, ''test_PrimeGenerator.py''. The files are supposed to be in the same folder. I will not show the code from last week in ''PrimeGenerator.py'', if you want to see the code, click the above link. <p> This is my unit test file. I want to test...")
- 09:36, 27 January 2026 Beginning unit test (hist | edit) [3,156 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Intermediate classes |Next: Intermediate unit test |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_09-Testing.ppt Testing]<br> Online: [https://docs.pytest.org/ pytest documentation]<br> Resource: Example code - Unit test<br> Resource: Unit test - start of reverse polish notation...")
- 09:32, 27 January 2026 Example code - Classes (hist | edit) [3,899 bytes] WikiSysop (talk | contribs) (Created page with "You know how I often use primes in my examples, so I decided to make a prime number generator class as an example.<br> It is able to generate a range of primes, somewhat similar to the way '''range()''' works.<br> Wanting to be smart, I decided to store the primes I have already computed in a class variable, so I do not have to compute them again at least while the program runs.<br> I am doing a running incremental calculation of primes, storing them as I find them, and...")
- 09:32, 27 January 2026 Beginning classes (hist | edit) [5,527 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Comprehension, generators, iteration |Next: Intermediate classes |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_07-Classes.ppt Classes]<br> Resource: Example code - Classes<br> == Subjects covered == Classes<br> Object Oriented Programming == Exercises to be handed in == The exe...")
- 09:29, 27 January 2026 Example code - Misc (hist | edit) [1,466 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ == Files used in example == Our favorite data file: ''ex1.dat'' == Closest to zero == There are a lot of numbers in this file. Which number is the closest to zero and where is it (row/column) ?<br> This is more complicated because there are both positive and negative numbers in the file.<br> In order to demonstrate some of the new functions/methods, I pull the entire file into memory. This problem could be solved by reading line-by-line and not keeping all the...")
- 09:27, 27 January 2026 Example code - Comprehension (hist | edit) [12,261 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ == Files used in example == [http://teaching.healthtech.dtu.dk/material/22118/TA_list.txt TA_list.txt]<br> [http://teaching.healthtech.dtu.dk/material/22118/student_list.txt student_list.txt]<br> == Assigning students to TA's, Take 2 == After having used the original program a few times, see [https://teaching.healthtech.dtu.dk/22116/index.php/Example_code_-_Complex_data here], I got dissatisfied with it - the randomness did not ensure even distribution of stud...")
- 09:21, 27 January 2026 Comprehension, generators, iteration (hist | edit) [6,119 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Functions, namespace, memory management |Next: Beginning classes |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_06-Comprehension.ppt Comprehension, generators & iteration]<br> Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_06-Random.ppt Randomness]<br> Video: [ht...")
- 09:12, 27 January 2026 Example code - Functions (hist | edit) [3,538 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ == File used in example == [http://teaching.healthtech.dtu.dk/material/22118/aln7.fsa aln7.fsa] == Finding consensus sequence from protein alignment == This simple consensus sequence finder simply looks at each position on all the sequences in an alignment and picks the most frequent occurring amino acid as the consensus for that position. In case of tie, the first one according to the sorting algorithm is chosen. Stupid and random, but a good practical example...")
- 09:11, 27 January 2026 Functions, namespace, memory management (hist | edit) [4,358 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: More git |Next: Comprehension, iteration, generators |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_05-Functions.ppt Functions] - this will be short as it is a reminder.<br> Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_05-Namespace.ppt Namespace].<br> Powerpoin...")
- 09:04, 27 January 2026 Collection of files (hist | edit) [2,873 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ Last updated: February 2, 2023 == Files used in various exercises == To download the files to your system, just press the Shift key while you left click on the blue link. Follow the instructions.<br> You can play around with these files as much as you like. If you change or destroy them, just download them again.<br> Put the files in your course folder on your computer.<br> <!-- The files have been zipped together in one convenient download for you.<br> [https:...")
- 14:21, 7 November 2025 Intermediate Unix (hist | edit) [3,435 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: None |Next: Python Recap and Objects |} You did do the Course preparation, right!! Otherwise all of this matters not. == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22113/22113_01-Unix.ppt Introduction to Unix]<br> == Subjects covered == * New Unix commands * Scripting in bash == Exercises to be...")
- 12:05, 6 November 2025 Beginning Unix (hist | edit) [5,334 bytes] WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Programme |Next: Intermediate Unix |} You did do the Course preparation, right!! Otherwise all of this matters not. == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22113/22113_01-Unix.ppt Introduction to Unix]<br> The videos are not entirely in sync with the powerpoint, as it has been updated.<...")