User contributions for WikiSysop

A user with 85 edits. Account created on 1 March 2024.
Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)

1 March 2024

  • 17:0117:01, 1 March 2024 diff hist +2,970 N Example code - DictsCreated page with "__NOTOC__ == Files used in example == [http://teaching.healthtech.dtu.dk/material/36610/apachewiki.log Log from web server] == Web server statistics == It is of interest to the BOSS to see how many visitors a web site has and how many web pages has been seen. So therefore someone (you) has to make some statistics from the web server log file. == Example of a log entry == This is one line split in 3, so it can be seen. <span style="color:#FF0000">52d3ccde.dynamic-ip.k-..."
  • 17:0117:01, 1 March 2024 diff hist +5,288 N DictionariesCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Sets |Next: How to Python |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_13-Dicts.ppt Dictionaries]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=61d288cc-5f62-4027-a83e-af27012c27d2 Dictionaries]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=7b897492-bedb-4042-a4fc..." current
  • 17:0017:00, 1 March 2024 diff hist +3,838 N SetsCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Simple Pattern Matching |Next: Dictionaries |} == Required course material for the lesson == Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=e69a7b62-4f83-4b92-b254-af27012c464e Sets]<br> Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_12-Sets.ppt Sets]<br> == Subjects covered == * Sets, which are unordered data collections with no dupli..."
  • 17:0017:00, 1 March 2024 diff hist +3,499 N Simple Pattern MatchingCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: More with Lists |Next: Sets |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_11-PatternMatch.ppt Pattern Matching]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=4a8a478b-33e4-4a7a-bc38-af27012cf23f Pattern matching in Python]<br> == Subjects covered == String pattern matching, strippi..." current
  • 17:0017:00, 1 March 2024 diff hist +1,044 N Example code - ListsCreated page with "== Analysing string content == This is an upgrade of the previous "Determine the input". Here every word, integer and float on the line is counted. Quite a few list concepts are used - on purpose. <pre> inputstring = input("Enter something and I will figure out what it is: ") inlist = inputstring.split() # ints, floats and words count resultlist = [0, 0, 0] resultname = ('ints', 'floats', 'words') # Analyze for item in inlist: try: itempos = 2 result..." current
  • 16:5916:59, 1 March 2024 diff hist +6,221 N More with ListsCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Lists/Sequences |Next: Simple Pattern Matching |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_10-MoreLists.ppt More with Lists]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=b253adf9-282f-4885-9ce3-af27012d346e More advanced methods with lists]<br> Video: [https://panopto.dtu.dk/Pano..."
  • 16:5816:58, 1 March 2024 diff hist +5,084 N Lists/SequencesCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Stateful Parsing |Next: More with Lists |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_09-Lists.ppt Lists and Sequences]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=871af158-9477-47c6-8e89-af27012d6e8d The basics of lists in python]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/..."
  • 16:5816:58, 1 March 2024 diff hist +3,327 N Stateful ParsingCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Exceptions and Bug Handling |Next: Lists/Sequences |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_08-StatefulParsing.ppt Stateful Parsing]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=fe50507e-9009-49b1-a3a8-af27012d8cdf Stateful Parsing]<br> Video: [https://panopto.dtu.dk/Panopto/P..."
  • 16:5416:54, 1 March 2024 diff hist 0 N File:BullsEye.pngNo edit summary current
  • 16:5416:54, 1 March 2024 diff hist +1,489 N Example code - ExceptionsCreated page with "== Determining input type == How to determine the input with try/expect. This is not really how it is done in practice, but it is still good to understand the ideas, because sooner or later you run into a situation where parts of this is useful. <pre> inputstring = input("Enter something and I will guess what it is: ") try: # This assignment will succeed mytype = 'string' # This may fail, in such case our exception handler is called result = float(inputst..." current
  • 16:5316:53, 1 March 2024 diff hist +4,560 N Exceptions and Bug HandlingCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Python Input-Output |Next: Stateful Parsing |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_07-Exceptions.ppt Exceptions and Bug Handling]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=d230fcd7-c06c-414e-a14d-af27012e22f6 Exceptions]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Vi..."
  • 16:5216:52, 1 March 2024 diff hist +1,131 N Example code - Input OutputCreated page with "== Replacing tabs with spaces == As you may have discovered by now, Python is very sensitive about mixing tabs and spaces in the indentation. This program discovers all the tabs and makes them into spaces. You can decide how many spaces a tab should be.<br> The program is meant to work in a Unix environment, and Jupyter Notebook will tend to make it superfluous. <pre> filename = input("Filename: ") spaceno = int(input("Number of spaces instead of a tab: ")) # Make a st..." current
  • 16:5116:51, 1 March 2024 diff hist +23 Biological knowledge needed in the course→‎Biological data formats current
  • 16:5016:50, 1 March 2024 diff hist +32 Biological knowledge needed in the course→‎Biological data formats
  • 16:4916:49, 1 March 2024 diff hist +403 Biological knowledge needed in the courseNo edit summary
  • 16:4716:47, 1 March 2024 diff hist 0 N File:DNA.jpgNo edit summary current
  • 16:4616:46, 1 March 2024 diff hist +15 Biological knowledge needed in the course→‎Biological data formats
  • 16:4416:44, 1 March 2024 diff hist +4,577 N Biological knowledge needed in the courseCreated page with "__NOTOC__ == Genetic information == The genetic information is stored in the DNA double helix strand, check [https://en.wikipedia.org/wiki/DNA Wikipeida on DNA]. A strand consists of a sequence of the 4 nucleotides (bases); Adenine (A), Thymine (T), Cytosine (C) and Guanine (G). A gene is a sequence of the 4 different nucleotides, where subsequent triplets of nucleotides (a codon) is translated into a sequence of amino acids, which then forms the proteins of our body. A..."
  • 16:4416:44, 1 March 2024 diff hist +7,412 N Python Input-OutputCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Pseudocode and Comments |Next: Exceptions and Bug Handling |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_06-InputOutput.ppt Input, output, libraries and strings]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=0f769984-a650-444f-bb2c-af27012e79b3 File reading and writing]<br> Video: [..."
  • 16:4216:42, 1 March 2024 diff hist 0 N File:Shapes.pngNo edit summary current
  • 16:3316:33, 1 March 2024 diff hist +4,979 N Pseudocode and CommentsCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Simple File Reading |Next: Python Input-Output |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_05-PseudoComments.ppt Pseudocode, comments and user interface]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=79ac24c4-603c-4a6e-9343-af2701292c8c The use of pseudocode and comments] <br> Res..."
  • 16:3316:33, 1 March 2024 diff hist +629 N Example code - File ReadingCreated page with "== Numbering and printing a chunk of file == <pre> print("Numbers and prints a section of a file.") filename = input("Filename: ") fromline = int(input("From line: ")) toline = int(input("To line: ")) with open(filename, "r") as infile: # keep track of the line number linenumber = 0 # iterate over the lines in the file for line in infile: linenumber += 1 # went past the required last line if linenumber > toline: pas..." current
  • 16:3216:32, 1 March 2024 diff hist +4,056 N Simple File ReadingCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Python Basics |Next: Pseudocode and Comments |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_04-FileReading.ppt Simple File Reading]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=e51d5f37-84e5-46d4-8252-af270129a697 Simple file reading]<br> Video: [https://panopto.dtu.dk/Panopto/Pages..."
  • 16:3216:32, 1 March 2024 diff hist +1,192 N Example code - BasicsCreated page with "== Decimal to Binary number converter == I am a bit unhappy about this example due to the required knowledge of binary numbers, but as such the example is great.<br> Youtube: [https://www.youtube.com/watch?v=2SUvWfNJSsM Binary numbers - watch from 2:00 to 6:00]<br> [https://en.wikipedia.org/wiki/Binary_number#Representation Wikipedia on binary numbers] <pre> print("This script converts whole numbers (integers) into binary.") # Ask for user input number = int(input("Ente..." current
  • 16:3116:31, 1 March 2024 diff hist +4,843 N Python BasicsCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Using Jupyter Notebook |Next: Simple File Reading |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_03-Basics.ppt Python Basics]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=2bea1663-7677-442a-8802-af27012a12ab Python basics. Language function. Assignment]<br> Video: [https://panopto.d..." current
  • 16:3016:30, 1 March 2024 diff hist +3,015 N Using Jupyter NotebookCreated page with "__NOTOC__ {| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Programme |Next: Python Basics |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_01-InstallingJupyter.ppt Installing Jupyter] - installing Anaconda which has the Notebook<br> Powerpoint: [https://teaching.healthtech.dtu.dk/material/22101/22101_02-Jupyter.ppt Using Jupyter Notebook]<br> PDF: [https://teac..." current
  • 16:3016:30, 1 March 2024 diff hist +3,033 N Collection of filesCreated page with "__NOTOC__ Last updated: September 2, 2022 == 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://te..." current
  • 16:2916:29, 1 March 2024 diff hist +835 N ProgrammeCreated page with "'''Collection of files''' used in the exercises and lessons - all gathered here. * 29/08 Lesson 1: Using Jupyter Notebook * 05/09 Lesson 2: Python Basics * 12/09 Lesson 3: Simple File Reading * 19/09 Lesson 4: Pseudocode and Comments * 26/09 Lesson 5: Python Input-Output * 03/10 Lesson 6: Exceptions and Bug Handling, [https://evaluering.dtu.dk/ Midterm evaluation] - part 1 * 10/10 Lesson 7 Stateful Parsing, [https://evaluering.dtu.dk/ Mid..."
  • 16:2816:28, 1 March 2024 diff hist +975 N Install Jupyter NotebookCreated page with "__NOTOC__ You can install Jupyter Notebook in a number of ways, but the absolute simplest is to install Anaconda, which will give you the Notebook, Python and a number of scientific libraries. There are many resources on the net about how to use Jupyter Notebook, Python and Anaconda itself.<br> The difference between installing Anaconda on Mac and Windows is insignificant, so Mac users can easily figure out how by reading the powerpoint or watching the videos. Link: [h..." current
  • 16:2316:23, 1 March 2024 diff hist +154 N MediaWiki:SidebarCreated page with " * navigation ** https://teaching.healthtech.dtu.dk/|Course List ** https://teaching.healthtech.dtu.dk/22101/|22101/22161 ** Programme|Programme * TOOLBOX" current
  • 16:2016:20, 1 March 2024 diff hist +4,537 N 22101/22161 - Introduction to programming in Life Science using PythonCreated page with "__NOTOC__ '''Teacher:''' [https://www.inside.dtu.dk/da/dtuinside/generelt/telefonbog/person?id=816&cpid=214027&tab=2&qt=dtupublicationquery Peter Wad Sackett], pwsa@dtu.dk <!--, [https://www.inside.dtu.dk/en/dtuinside/generelt/telefonbog/person?id=130596&tab=0 Gisle Alberg Vestergaard], gisves@dtu.dk --> <br> '''Language:''' The course is taught in English.<br> '''Tools:''' The course is using Jupyter Notebook. Install Jupyter Notebook before you meet in class.<br> '..."
  • 16:1916:19, 1 March 2024 diff hist +70 N MediaWiki:MainpageCreated page with "22101/22161 - Introduction to programming in Life Science using Python" current
  • 16:1816:18, 1 March 2024 diff hist 0 N MediaWiki:DisclaimersCreated blank page current
  • 16:1716:17, 1 March 2024 diff hist 0 N MediaWiki:AboutsiteCreated blank page current
  • 16:1716:17, 1 March 2024 diff hist 0 N MediaWiki:PrivacyCreated blank page current
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)