#%% 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 the module import intro_oop_module #%% Instance or object called inventory_1 inventory_1 = intro_oop_module.Inventory(10) #%% Program part where the inventory_1 object is used # Calling the method named accum: inventory_1.accum(2) # Reading the attribute named n: contents_inventory = inventory_1.n print(f'Contents of inventory: {contents_inventory}') # Calling the method named value: value_element = 100 # Value per element in inventory value_inventory = inventory_1.calc_value(value_element) print(f'Value of inventory: {value_inventory}')