Closed bbelderbos closed 7 years ago
Thank you @bbelderbos I wonder why I did this first 5 only? I'll have to go back and have a look.
Hi Bob! I went through this example again and watched the video. The "you try" section does have a different answer than the final code demo.
But the goal in the "you try" section wasn't to match the final output. It was to start with the CSV file and generate the output in the picture in that you try section.
I see why this is confusing but I also want the final code to match what's in the video as closely as possible. So I'm not sure there is an improvement to be made.
I added this to the bottom of the steps in you try:
Note: To see finished code that outputs the expected numbers, you can use this alternate branch: App 9's program.py for this "you try" section
Yeah trivial thing, no worries. Thanks for checking and above all for your awesome work. Have a great day.
Hi Michael,
Nice exercises, thanks.
Running program.py in 09 I get:
Average 2-bedroom home is $56,615, baths=1, sq ft=824.3
The try screenshot shows a higher amount, and the baths feature instead of sq ft:
https://github.com/mikeckennedy/python-jumpstart-course-demos/tree/master/apps/09_real_estate_analyzer/you_try
One thing I spotted in the code is that you take the first 6 items for homes before printing the 2-bedroom bit:
When I take the break out, I get the right numbers:
Average 2-bedroom home is $165,428, baths=1.4, sq ft=957.2
Cheers Bob