Happy birthday surprise!

Want to surprise your co-workers on their birthday?
Copy paste code below into a Python node and get them to run it:

import clr
from System.Threading import Thread
import winsound


Thread.Sleep(2000)
winsound.Beep(264, 125)
Thread.Sleep(250)
winsound.Beep(264, 125)
Thread.Sleep(125)
winsound.Beep(297, 500)
Thread.Sleep(125)
winsound.Beep(264, 500)
Thread.Sleep(125)
winsound.Beep(352, 500)
Thread.Sleep(125)
winsound.Beep(330, 1000)
Thread.Sleep(250)
winsound.Beep(264, 125)
Thread.Sleep(250)
winsound.Beep(264, 125)
Thread.Sleep(125)
winsound.Beep(297, 500)
Thread.Sleep(125)
winsound.Beep(264, 500)
Thread.Sleep(125)
winsound.Beep(396, 500)
Thread.Sleep(125)
winsound.Beep(352, 1000)
Thread.Sleep(250)
winsound.Beep(264, 125)
Thread.Sleep(250)
winsound.Beep(264, 125)
Thread.Sleep(125)
winsound.Beep(523, 500)
Thread.Sleep(125)
winsound.Beep(440, 500)
Thread.Sleep(125)
winsound.Beep(352, 250)
Thread.Sleep(125)
winsound.Beep(352, 125)
Thread.Sleep(125)
winsound.Beep(330, 500)
Thread.Sleep(125)
winsound.Beep(297, 1000)
Thread.Sleep(250)
winsound.Beep(466, 125)
Thread.Sleep(250)
winsound.Beep(466, 125)
Thread.Sleep(125)
winsound.Beep(440, 500)
Thread.Sleep(125)
winsound.Beep(352, 500)
Thread.Sleep(125)
winsound.Beep(396, 500)
Thread.Sleep(125)
winsound.Beep(352, 1000)

OUT = ":)"

Haha. Enjoy! :grinning:

9 Likes

No response

Your computer might have disabled beep. See this: