Save / load workspace

Save your lab results on this server for 48 hours. Use the token to continue on another device. Anyone who knows the token can open your workspace.

Save workspace

A name is required when you first save and is then permanently bound to this workspace. Task values, entries and progress are saved together.

Load workspace

New workspace

Start with empty results and a name of your choice. Previously saved tokens remain valid until they expire. Unsaved changes in this tab will be discarded.

Saving also transfers any included measurement files and analysis videos to this server. Running simulations are saved as a set of results and displayed in a paused state when loaded.

Programming task — enter your code and have it checked. Most parts read their values with them input() a: the check feeds in fixed inputs and compares your output character by character — so give only what is required (no additional texts). At part 6 you define the values yourself (none input()); There it is checked whether the variables are set and swapped correctly. Like input() works, it says in the instructions.

Part 1 — Welcome

Read a name and greet.

Exercise

  1. Read a name input() there.
  2. Be specific Hallo, <name>! off — when entering Anna therefore Hallo, Anna!.

Part 1 — Your Code

Loading Python…
Output

    

Part 2 — Sum of two numbers

Read in two numbers and add them together.

Exercise

  1. Read two integers one - each with int(input()).
  2. Pass only their sum (e.g. B. at 3 and 4 the number 7).

Part 2 — Your Code

Loading Python…
Output

    

Part 3 — Age in Sentence

Read in a number and incorporate it into a sentence.

Exercise

  1. Read the age as a whole number (int(input())).
  2. Give the sentence Ich bin X Jahre alt. from — where X is the read age.

Part 3 — Your Code

Loading Python…
Output

    

Part 4 — Multiple statements

Combine three entries into one sentence.

Exercise

  1. Read one at a time First name, Name and City one (three input()).
  2. Output exactly: <vorname> <nachname> wohnt in <stadt>.

Part 4 — Your Code

Loading Python…
Output

    

Part 5 — Total price

Calculate with numbers read in.

Exercise

  1. Read that first Price as a decimal number (float(input())), then the Number as an integer (int(input())).
  2. Calculate the total price Price · Number.
  3. Round to 2 decimal places and give only the result from - e.g. B. at price 3.5 and number 4 the number 14.0.

You can use round or the decimal-place formatting of an f-string. Find out how to specify the required number of decimal places.

The checks accept trailing zeros: 14.0 and 14.00 count as the same numeric value. What matters is the correctly rounded value and the required output lines.

Part 5 — Your Code

Loading Python…
Output

    

Part 6 — Exchanging values

Swap two self-set values - here without input().

Exercise

This exercise will not read in: you set the values yourself. It's about that Exchange pattern to master.

  1. Set two variables x and y and give to them different values (e.g. B. x = "rot" and y = "blau").
  2. Swap their contents: After the swap, in x the previous value of y and vice versa (tip: via an auxiliary variable - or the multiple assignment from Python).
  3. Give afterward x in line 1 and y in line 2 out — at x = "rot" and y = "blau" so appears blau and below rot.

Part 6 — Your Code

Loading Python…
Output

    

Report as PDF

Document and download your results.

Module overview

PartStatus
Part 1: WelcomeOpen
Part 2: TotalOpen
Part 3: AgeOpen
Part 4: Multiple detailsOpen
Part 5: Total priceOpen
Part 6: SwapOpen

Not all parts are completed yet - you can still create the report, which will then mark which parts are open.

Download PDF

Enter your name and download the report as a PDF. The report contains your submitted code, the module overview and a QR code for verification.