12 lines
214 B
Python
12 lines
214 B
Python
|
class Location:
|
||
|
def __init__(self, country, city):
|
||
|
self._country = country
|
||
|
self._city = city
|
||
|
|
||
|
@property
|
||
|
def city(self):
|
||
|
return self._city
|
||
|
|
||
|
@property
|
||
|
def country(self):
|
||
|
return self._country
|