Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Daily Python Projects
- Real Estate Price Estimator
- Level 1: Beginner
- https://dailypythonprojects.substack.com/p/count-uppercase-and-lowercase-letters
- This is a simple beginner project where the program estimates the price of a property based on the size of the house (in square feet) and its location (city or suburb). The program will help practice basic Python concepts such as user input, conditional statements, and basic calculations.
- """
- size_property = float(input('Welcome to the Real Estate Price Estimator!\nEnter the size of property in square feet: '))
- location = input('Enter the location (city or suburb): ')
- if location == 'city':
- price = size_property * 250
- elif location == 'suburb':
- price = size_property * 150
- print (f"The estimated price for a {size_property} sq ft in the {location} is ${price:.2f} ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement