| A | Assignment unit 01 |
Please export your exercise solutions from Jupyter as a single Python script named unit01_Assignment.py.
Compress this file into a .zip file, and upload it to ILIAS.
For more information, please visit the following link:
https://geomoer.github.io/moer-base-python/unit00/unit00-04_submission_guidelines.html
Make sure your code is clearly structured and includes comments where helpful.
This worksheet introduces Python and helps you get started with the first steps of programming. Follow the tasks carefully and write your answers in your own words or in Python code.
1️⃣ What are the main reasons why Python is so popular?
2️⃣ What do you understand by the term interpreter in programming?
3️⃣ Describe the process of doing laundry using a simple algorithm. Include two conditional checks:
Check the water temperature: If not correct → adjust it.
Check if the clothes are clean: If not → run another wash cycle.
You can write it in natural language, but try to structure it clearly (like pseudocode or flow logic).
4️⃣ Install the latest version of Python on your computer.
5️⃣ Check Your Python Version and Path
Task:
- Open the terminal (or CMD).
- Run the command:
python --version where python # or: which python (macOS/Linux) - Write down the version and the path.
⃣6️⃣ Your First Python Script
Use function print() to print:
- Last name
- First name
- Address