I am almost finishing with the Art Market Place Project, and I quite don’t understand something:
def buy_artwork(self):
if artwork.owner != self:
art_listing = None
for listing in venner.listings:
if listing.art == artwork:
art_listing = listing
break
if art_listing != None:
art_listing.art.owner = self
veneer.remove_listing(art_listing)
I don’t really understand why art_listing = None and art_listing != None and what that means.
p.s. even after watching the walkthrough, I still don’t understand