Skip to content

The added code... Mariam & Aisha #4

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

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

Conversation

@MaryJoK
Copy link

@MaryJoK MaryJoK commented Dec 11, 2016

No description provided.

# the book with the student who borrowed it!


checked_out = {}
Copy link
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.

if books[isbn] == True:
return book[isbn]
else:
return checked_out[isbn]
Copy link
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