import os
import random
from gpiozero import Button
from signal import pause

button = Button(2)

farts = os.listdir('farts')

def make_fart():
  fart = random.choice(farts)
  os.system("aplay farts/{0}".format(fart))

button.when_pressed = make_fart
  
pause()
a20df1ea71f3312617d7eeb200fda02727f940f5
<mask token>


def make_fart():
    fart = random.choice(farts)
    os.system('aplay farts/{0}'.format(fart))


<mask token>

<mask token>


def make_fart():
    fart = random.choice(farts)
    os.system('aplay farts/{0}'.format(fart))


<mask token>
pause()

<mask token>
button = Button(2)
farts = os.listdir('farts')


def make_fart():
    fart = random.choice(farts)
    os.system('aplay farts/{0}'.format(fart))


button.when_pressed = make_fart
pause()

import os
import random
from gpiozero import Button
from signal import pause
button = Button(2)
farts = os.listdir('farts')


def make_fart():
    fart = random.choice(farts)
    os.system('aplay farts/{0}'.format(fart))


button.when_pressed = make_fart
pause()

import os
import random
from gpiozero import Button
from signal import pause

button = Button(2)

farts = os.listdir('farts')

def make_fart():
  fart = random.choice(farts)
  os.system("aplay farts/{0}".format(fart))

button.when_pressed = make_fart
  
pause()