Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ip2286_week2 #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ishapatel
Copy link

I think my loop is correct, but i'm getting this error:
database [soufun] does not exist! session ending...

sum_rec += record.price
avg_price = sum_rec/len(records)
if record.price < ini_min:
min_price = record.price
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here you should set ini_min to the record.price to keep track of the lowest price

@danilnagy
Copy link
Contributor

Hi Isha, your loop will work but could be more optimized. The error has to do with the name of your database and its username/password so make sure to check that these are right in your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants