def getType():
inp=int(input("\t<<<<<APARTMENT RENTAL PROGRAM>>>>>\n1 studio\n2 One-Bedroom\n3 Two-Bedroom\n4 Exit\nEnter Your Choice ::"))
while(inp>4 or inp<0):
print("Enter Valid Choice!!")
inp=int(input("\t<<<<<APARTMENT RENTAL PROGRAM>>>>>\n1 studio\n2 One-Bedroom\n3 Two-Bedroom\n4 Exit\nEnter Your Choice ::"))
if(inp==4):
return 4,0
furnished=input("Do you want the apartment furnished(Y/N)?")
valid=['y','n','Y','N']
while(furnished not in valid):
print("Enter Valid Choice!!")
furnished = input("Do you want the apartment furnished(Y/N)?")
if(furnished == 'Y' or furnished=='y'):
return inp,1
return inp,0
def determineRent(kind,furnish):
rents=[[400,600,750],[500,750,900],[600,925,1025]]
return rents[kind-1][0],rents[kind-1][furnish+1]
def displayRent(kind,furnish,rent,deposit):
if(kind==1):
print("\tStudio")
elif (kind == 2):
print("\tOne-Bedroom")
elif(kind==3):
print("\tTwo-Bedroom")
**if (furnish == 1):
print("\tFurnished")**
else:
print("\tUnfurnished")
print("\tDeposit : $",deposit)
print("\tRent : $",rent)
I am trying to get rid of my syntax issues and I cannot get my statement to work (bolded) I included the entire code for reference. I tried redefining furnish and changing it to furnished to no avail.