Date and time from a timestamp
Every telemetry reading carries a timestamp in the international ISO 8601 format: 2026-03-14T09:30:05Z. Machines love it, because it sorts correctly as text, and people find it hard to read.
Cut the date and the time of day out of it, then show them the way the ground team writes dates.
Finish stage 1 to unlock this stage.
Slice the date and the time of day out of the timestamp and print them:
Date: 2026-03-14 Time: 09:30:05
The date is the first 10 characters. The time starts after the T, at index 11, and is 8 characters long. In text[start:end], the character at end isn't included.
Finish stage 1 to unlock this stage.
In Poland and much of Europe, dates are written day first, with dots: 14.03.2026. Add a line in that format, followed by the time without seconds:
Date: 2026-03-14 Time: 09:30:05 European format: 14.03.2026 09:30
Slice the year, the month and the day separately, then put them back together in a new order with an f-string.
Hints
String Indexing and Slicing
# String indexing - every character has a position, counting from 0
mission = "ARTEMIS"
# 0123456
# Grabbing individual characters
print("First letter:", mission[0]) # A
print("Last letter:", mission[-1]) # S
# Slicing [start:stop] - stop is NOT included
print("First three:", mission[0:3]) # ART
print("From index 4 on:", mission[4:]) # MIS
print("Last three:", mission[-3:]) # MIS
# Step slicing [start:stop:step]
launch_code = "A1B2C3D4"
print("Every 2nd:", launch_code[::2]) # ABCD
print("The digits:", launch_code[1::2]) # 1234
# Reversing with a negative step
print("Reversed:", mission[::-1]) # SIMETRA
Separate arguments with commas. They're passed on every Run as sys.argv[1:].