If you type "Judy is from Tunis" you get it wrong but technically it could be a correct answer as Tunis is a city in Tunisia.
I think if they mean the city they would add: من مدينة تونس instead.
Besides, I think the proper vowel for Tunisia is: تونُس Túnus.
No, it's spelled the same way, both the city and the country Tunis, with kasra - تونِس.
I know. I'm saying if Duolingo wants to point to the city, they would have added (مدينة) before (تونس), because even though in Arabic both names the same, in English the two aren't. In English, the country is Tunisia, while the city is Tunis.