import pygame, time pygame.mixer.init() pygame.mixer.music.load("octafish.ogg") pygame.mixer.music.play() while pygame.mixer.music.get_busy() > 0: time.sleep(1)