This is part 3 and 4. Please provide code that actually work. When…
Question This is part 3 and 4. Please provide code that actually work. When… This is part 3 and 4. Please provide code that actually work. When you run the code it should move the coin. As long as the coin moves when you run it, it is good.I will provide the prt 1 and 2 through comment. Please provide work that actually works. Image transcription textPart 3: Moving discontent coins Now youwill implement a methodmove_discontent(self) on the… Show more… Show more Part 1 and 2Image transcription textimport random COL = 13 ROW = 16 SPA = 75 class Coin: def _init_(self,type): self.type = type r = random.randint(1,2) if r == 1: self.content = Trueelse: self.content = False def getType(self): return self.type def … Show more… Show morePart 1 and 2 continueImage transcription textclass Grid: def init_(self): self. coins = 0 for i in range(COL): self.coins.append([1) for j in range(ROW): if j


