Any ideas why the code below does not play the sound? If the s.play() were to be outside the clock() function, it work.
import time
import pygame
pygame.init()
s = pygame.mixer.Sound("0614.wav")
def clock ():
x = input("How long to start the alarm for? ")
delay = float(x)
print ("Alarm Started")
time.sleep(delay)
print ("!!!!ALARM!!!!!")
s.play()
clock()