# This is a comment in Python
print("Hello, World!")
Hello, World!
Programming: Everyday Decision-Making Algorithms
. . .
We really appreciate active participation and interaction!
. . .
No worries, we will help you out if you have any questions!
. . .
This is just in order to provide you with working solutions after each deadline.
We will mostly not cover Python during the lectures!
. . .
Question: Anybody know why?
. . .
. . .
Don’t worry, we will help you out if you have any questions!
We are convinced that this course will be quite interesting and teach you more for your daily life than most other courses!
. . .
But you should not simply use them to replace your learning.
. . .
Great resources to start are books and small challenges. You can find a list of book recommendations at the end of the lecture. Small challenges to solve can for example be found on Codewars.
. . .
IDE = Integrated Development Environment
uv
uv
to install and manage Python versionsuv
and Python. . .
If the installation does not work, let us know!
. . .
Unsure on how to work with VS Code and notebooks? Take a look at the tutorial from VS Code and/or ask us! We are happy to help you out!
. . .
Not all packages available in Python are available here, thus you might need a computer to solve certain problems. For our course, this should not be a problem.
Task: Create a directory for the course and create a new file called hello_world.py
with the following code:
# This is a comment in Python
print("Hello, World!")
Hello, World!
. . .
Run it with the green ‘run’ button or by pressing F5!
. . .
“Hello world” is a classic example to start with. Often used as a test to check if your computer is working properly and that you have installed the necessary software.
That’s it for our introduction!
Let’s have a short break and then continue with our first topic.
. . .
Think Python is a great book to start with. It’s available online for free. Schrödinger Programmiert Python is a great alternative for German students, as it is a very playful introduction to programming with lots of examples.
For more interesting literature, take a look at the literature list of this course.
Christian, B., & Griffiths, T. (2016). Algorithms to live by: the computer science of human decisions. First international edition. New York, Henry Holt and Company.↩︎
The main inspiration for this lecture. Nils and I have read it and discussed it in depth, always wanting to translate it into a course.↩︎