Add another constructor to the Slide class that takes just a picture filename and plays no sound when it plays.

Note: The second constructor is simple to add, but also requires a check within the “show” method to avoid a Inappropriate argument exception

```
class Slide:
def __init__(self, pictureFile,soundFile):
self.picture = makePicture(pictureFile)
self.sound = makeSound(soundFile)

def __init__(self, pictureFile):
self.picture = makePicture(pictureFile)
self.sound = None

def show(self):
show(self.picture)
if not self.sound==None:
blockingPlay(self.sound)
```

Computer Science & Information Technology

You might also like to view...

Which statement pertaining to system reliability is FALSE?

A) Having the latest version of software products can make your system more reliable. B) You can clean out unnecessary programs from your Startup folder. C) An accumulation of temporary Internet files has no effect on your computer's overall performance. D) When you defrag your hard drive, it works more efficiently.

Computer Science & Information Technology

During the port scanning process, the attacker will scan only the 1,024 well-known ports

Indicate whether the statement is true or false.

Computer Science & Information Technology