"Where is the city you live in?"
Translation:Wo ist die Stadt, in der du lebst?
Wouldn't "du wohnst" be a lot more appropriate than "du lebst" here? Or do they both work?
Both work here.
I'm wondering if Duo shouldn't put "Wo liegt die Stadt..." as the suggested translation ( = "where is the city geographically located?"). "Wo ist die Stadt..." is fine, but for some reason I'm imagining a person (A) who promised to show someone (B) that city (e.g. "you'll be able to see it if we climb that hill over there"), brings (B) to that place, but there's no city to be seen, so (B) asks, "So now where's that city you said you live in?"
Good question. "Worin" is generally a formal word, but it is used in formal spoken language, e.g. "der Raum, worin wir uns befinden, ist 300 Jahre alt" ("the room we are in is 300 years old"), "ein Dokument, worin der Ablauf beschrieben wird" ("a document in which the procedure is described")...
"Die Stadt, worin du wohnst" somehow doesn't feel very natural to me. I'm not sure if it's just me; if I google "Stadt, worin", I only get old-timey texts, but that doesn't mean it's wrong today. "Die Stadt, in der..." is way more common, though.
What is the difference between leben and wohnen? I used du wohnst instead of du lebst and was marked wrong.
They're often completely interchangeable.
"in Berlin wohnen" = to inhabit a house/apartment in Berlin (and occasionally wash one's clothes and dust the cupoards there)
"in Berlin leben" = to spend one's life in Berlin (and enjoy the theatres and restaurants there)
"Ich wohne in Berlin, aber ich arbeite in Potsdam."
"Der Künstler (artist) lebt und arbeitet in Berlin."
Personally, if I'm asked where I live, I'd prefer "Ich wohne in [Stadt]" over "Ich lebe...".