I have a dict called properties that looks like this.
# Format for properties
# NAME = POS FNAME TYPE PRCHSBLE SUIT PRICE RENT RENTSET RENT1 RENT2 RENT3 RENT4 RENTH HSCOST HTCOST MORT UNMORT
properties = {
'okr': [1,'Old Kent Road',types["pt"],True,suits["br"],60,2,4,10,39,90,160,250,50,50,30,33]
}
(types and suits are just other dicts). To access this I'm using a function:
def view(prop):
print(f"Property Name: {properties[prop]}")
property = input("Which Property? ")
view(property)
This works great, until the point where I need to get a particular argument like for instance I need the 5th value, how do I go about doing that? Is it like an array where I use [x]