In one lesson, Duolingo teaches "die Stadt" for "the city"
In another lesson, Duolingo teaches "die City" for "the city"
How come this question does not accept either answer?
'die City' means 'city' in the sense of 'downtown'. Without any context I'd suggest to stick to 'city' ='Stadt'