Jan-29-2020, 02:47 AM
(This post was last modified: Jan-29-2020, 02:47 AM by blackjesus24.)
Hi everyone i'm trying to print my code, but it's telling me:
"unindent does not match any outer indentation level"
Here is my code:
"unindent does not match any outer indentation level"
Here is my code:
#Adding user input to a dictionary
# Create an empty dictionary
rental_properties = {}
# set a flag to indicate we taking applications
rental_open = True
while rental_open:
# prompt users for user name and address.
username = input("\nWhat is your name? ")
rental_properties = input("What is the address of the property that you have to rent")
# store the responses in a dictionary
rental_properties[username] = rental_properties
# Ask if the user know anyone else looking to rent property
repeat = input("\nDo you know anyone who might like to rent out their property?")
if repeat == "no":
rental_open = False
# adding property is complete
print("\n--- Property to rent ---")
for username, rental_properties in rental_properties.items():
print(username + " has " + rental_properties + " to rent.")
