2020-09-16 15:01:12 +02:00
|
|
|
try:
|
|
|
|
from common.inputChecking.choiceInput import choiceInput
|
|
|
|
except ModuleNotFoundError:
|
|
|
|
print('Sjekk README.md for hvilke flagg python trenger')
|
|
|
|
exit(1)
|
|
|
|
|
2020-09-15 09:27:47 +02:00
|
|
|
from task9a import mainBranch
|
2020-09-16 15:01:12 +02:00
|
|
|
from task9b import fritidsboligBranch, secondaryHouseBranch
|
2020-09-14 12:29:51 +02:00
|
|
|
|
2020-09-16 15:01:12 +02:00
|
|
|
if __name__ == "__main__":
|
|
|
|
choices = ['egen bolig', 'sekundærbolig', 'fritidsbolig']
|
2020-09-14 12:29:51 +02:00
|
|
|
|
2020-09-16 15:01:12 +02:00
|
|
|
choice = choiceInput(
|
|
|
|
prompt=f'Skriv inn hustype for skatteutregning ({", ".join(choices)}): ',
|
|
|
|
choices=choices)
|
2020-09-14 12:29:51 +02:00
|
|
|
|
2020-09-16 15:01:12 +02:00
|
|
|
if choice == 'egen bolig':
|
|
|
|
mainBranch()
|
|
|
|
elif choice == 'sekundærbolig':
|
|
|
|
secondaryHouseBranch()
|
|
|
|
else:
|
|
|
|
fritidsboligBranch()
|