import time
from machine import Pin,PWM
spk = beep(f,d=512):
  spk.PWM(Pin(13), freq=f, duty=d)
  spk.init()
  time.slepp_ms(500)
  spk.deinit()
notes = [262, 294, 330, 349, 392, 440]
for n in notes:
  beep(n)
  print("End of Program")