Advertisement
Edwinlga

real_estate_price_estimator.py

Feb 8th, 2025
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.84 KB | Source Code | 0 0
  1. """
  2. Daily Python Projects
  3. Real Estate Price Estimator
  4. Level 1: Beginner
  5. https://dailypythonprojects.substack.com/p/count-uppercase-and-lowercase-letters
  6.  
  7. 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.
  8. """
  9.  
  10. size_property = float(input('Welcome to the Real Estate Price Estimator!\nEnter the size of property in square feet: '))
  11.  
  12. location = input('Enter the location (city or suburb): ')
  13. if location == 'city':
  14.     price = size_property * 250
  15. elif location == 'suburb':
  16.     price = size_property * 150
  17.    
  18. print (f"The estimated price for a {size_property} sq ft in the {location} is ${price:.2f} ")
Tags: python
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement