-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgangnam.py
More file actions
45 lines (34 loc) · 872 Bytes
/
gangnam.py
File metadata and controls
45 lines (34 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import winsound
import time
winsound.Beep(293, 200) # D
winsound.Beep(293, 200) # D
winsound.Beep(293, 200) # D
winsound.Beep(293, 600) # D
winsound.Beep(246, 600) # B
time.sleep(0.1)
winsound.Beep(369, 200)# F#
winsound.Beep(369, 200)# F#
winsound.Beep(369, 200)# F#
winsound.Beep(369, 600)# F#
winsound.Beep(329, 600) # E
time.sleep(0.1)
winsound.Beep(329, 200) # E
winsound.Beep(329, 200) # E
winsound.Beep(329, 200) # E
winsound.Beep(369, 500) # F#
time.sleep(0.9)
winsound.Beep(369, 200) # F#
winsound.Beep(369, 200) # F#
winsound.Beep(369, 200) # F#
winsound.Beep(369, 600) # F#
time.sleep(0.9)
winsound.Beep(369, 200) # F#
winsound.Beep(369, 200) # F#
winsound.Beep(369, 200) # F#
for i in range(4):
winsound.Beep(369, 200) # F#
time.sleep(0.1)
for i in range(4):
winsound.Beep(369, 100) # F#
time.sleep(0.1)
winsound.Beep(369, 600) # F#