Skip to content

The added code... Mariam & Aisha #4

Open
MaryJoK wants to merge 1 commit into
NBHS-STEM:masterfrom
MaryJoK:patch-1
Open

The added code... Mariam & Aisha #4
MaryJoK wants to merge 1 commit into
NBHS-STEM:masterfrom
MaryJoK:patch-1

Conversation

@MaryJoK

@MaryJoK MaryJoK commented Dec 11, 2016

Copy link
Copy Markdown

No description provided.

Comment thread library.py
# the book with the student who borrowed it!


checked_out = {}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What happens if you run this function twice? It seems to me every time the function is run, the checked_out dictionary is reset.

Comment thread library.py
if books[isbn] == True:
return book[isbn]
else:
return checked_out[isbn]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

checked_out isn't defined within the scope of this function. Are you sure you tested your code?

@MaryJoK MaryJoK changed the title The added code/ a possible finished product! The added code... Mariam & Aisha Dec 12, 2016
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