Date Detective
Python
25 pts
Date Detective
Given date = "2026-11-29" and word = "Nakfa", create:
year—"2026", using a slicemonth—"11", using a sliceday—"29", using a slice with a negative indexbackwards—wordreversed, using a step of-1
Print day, month and year on one line with sep="/", then print backwards. Expected output:
29/11/2026 afkaN
Checklist
- Keep
dateandwordunchanged and createyearwith a slice. - Create
monthwith a slice. - Create
daywith a slice that uses a negative index. - Create
backwards,wordreversed with a step of-1. - Print
day,monthandyearjoined by/, thenbackwards.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
