<prompt> Translate the following text to SwahiliIn the 19th and early 20th centuries, Spain was both economically weak and politically unstable.  <response>: Katika karne ya 19 na mapema karne ya 20, Hispania ilikuwa dhaifu kiuchumi na isiyokuwa imara kisiasa. 