Merge pull request #72 from jarlethorsen/patch-2

Update ex6_2.md to fix variable mismatch
This commit is contained in:
David Beazley authored and GitHub committed 2024-07-31 10:36:09 -05:00
commit 6c742ccf84
1 file changed
+1 -1
+1 -1
View File
@@ -160,7 +160,7 @@ class Stock(Structure):
def cost(self): def cost(self):
return self.shares * self.price return self.shares * self.price
def sell(self, nshares): def sell(self, shares):
self.shares -= shares self.shares -= shares
``` ```