2020-09-15 09:27:47 +02:00
|
|
|
from task9a import mainBranch
|
|
|
|
from task9b import fritidsboligBranch, secondaryHouseBranch, safeQuestion
|
2020-09-14 12:29:51 +02:00
|
|
|
|
|
|
|
choices = ['egen bolig', 'sekundærbolig', 'fritidsbolig']
|
|
|
|
choices.extend([choice.capitalize() for choice in choices])
|
|
|
|
|
|
|
|
choice = safeQuestion(
|
2020-09-15 09:27:47 +02:00
|
|
|
question=
|
|
|
|
'Skriv inn hustype for skatteutregning (egen bolig, sekundærbolig, fritidsbolig): ',
|
|
|
|
choices=choices)
|
2020-09-14 12:29:51 +02:00
|
|
|
|
|
|
|
if choice in ['egen bolig', 'Egen bolig']:
|
|
|
|
mainBranch()
|
|
|
|
elif choice in ['sekundærbolig', 'Sekundærbolig']:
|
|
|
|
secondaryHouseBranch()
|
|
|
|
else:
|
|
|
|
fritidsboligBranch()
|