#%% Including the relative path to your module in the Python Path import sys module_path = '.' # Give the path as a string instead of the dot, # which just means 'here' (i.e. the present folder). sys.path.append(module_path) #%% Import import modul_billager_volvo #%% Opprettelse av en instans eller objekt av klassen Billager lager_Volvo = modul_billager_volvo.Billager("Volvo", 3) #%% Kall av Volvo-objektets metode kalt lagerendring: lager_Volvo.lagerendring(2) #%% Lesing av Volvo-objektets attributt kalt beholdning: antall_Volvo_paa_lager = lager_Volvo.beholdning #%% Utskrift print(f'Antall Volvo paa lager: {antall_Volvo_paa_lager}')