02002/02003: Computer Programming#

Danger

This is the 2023 version of the website for 02002/02003. Please see the newer programmering.compute.dtu.dk

This page contains material and information related to the course Computer Programming, offered at DTU.

You can find the exercises and project descriptions in the menu to the left.

Practicalities#

Note

There are two versions of the course: 02002 (Danish) and 02003 (English). The exercises, projects, and exams have the same content.

Contact

programmering@compute.dtu.dk

Python support

pythonsupport.dtu.dk

Platform feedback

Discord channel (invitation link)

Course schedule#

Please select the schedule corresponding to the course version you are following.

DTU Learn

https://learn.inside.dtu.dk/d2l/home/167880

Online discussion forum

Piazza

Time and place

See room plan on DTU learn, Thursday 13:00-17:00

Live streamed lecture

See DTU Learn under tab Video & Streaming

Exercise location

See DTU Learn

The teaching assistants will be available to answer your questions in person between 15:00-17:00.

#

Date

Title

Reading

Slides

1

Aug 31th, 2023

Chapter 1-2, [Dow16]

Lecture_1.pdf

2

Sep 7th, 2023

Chapter 3-4, [Dow16]

Lecture_2.pdf

Sep 27th, 2023

Project 1: Functions and printing

3

Sep 14th, 2023

Chapter 5-6, [Dow16]

Lecture_3.pdf

4

Sep 21th, 2023

Chapter 7-9, [Dow16]

Lecture_4.pdf

Oct 4th, 2023

Project 2: Strings and basic iterations

5

Sep 28th, 2023

Chapter 10, [Dow16]

Lecture_5.pdf

6

Oct 5th, 2023

Chapter 11, [Dow16]

Lecture_6.pdf

Oct 11th, 2023

Project 3: Lists and dictionaries

7

Oct 12th, 2023

Chapter 12-13, [Dow16]

Lecture_7.pdf

8

Oct 26th, 2023

Chapter 14, [Dow16]

Lecture_8.pdf

Nov 1st, 2023

Project 4: Datastructures, tuples and files

9

Nov 2nd, 2023

Chapter 15-16, [Dow16]

Lecture_9.pdf

10

Nov 9th, 2023

Chapter 17-18, [Dow16]

Lecture_10.pdf

Nov 15th, 2023

Project 5: Working with classes

11

Nov 16th, 2023

Chapter 2, [Her23]

Lecture_11.pdf

12

Nov 23th, 2023

Lecture_12.pdf

Nov 29th, 2023

Project 6: Numerical Python

13

Nov 30th, 2023

Lecture_13.pdf

Reading Material#

Bibliography#

Dow16(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20)

Allen Downey. Think Python. O'Reilly Media, Sebastopol, CA, 2nd edition, updated for python 3 edition, 2016. Available at https://greenteapress.com/wp/think-python-2e/.

Her23(1,2)

Tue Herlau. Introduction to python programing. Lecture notes, 2023.

>>> from datetime import datetime
>>> print("This page was last updated at:", datetime.now().strftime("%d/%m/%Y %H:%M:%S"))
This page was last updated at: 09/08/2024 15:35:39