Merge pull request #72 from jarlethorsen/patch-2

Update ex6_2.md to fix variable mismatch
This commit is contained in:
David Beazley 2024-07-31 10:36:09 -05:00 committed by GitHub
commit 6c742ccf84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -160,7 +160,7 @@ class Stock(Structure):
def cost(self):
return self.shares * self.price
def sell(self, nshares):
def sell(self, shares):
self.shares -= shares
```