def list_sounds(pck_content): sounds = [] for item in pck_content: if item.endswith(".wav") or item.endswith(".mp3"): sounds.append(item) return sounds