Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import winsound
- freq = {
- 'A': 100,
- 'B': 200,
- 'C': 300,
- 'D': 400,
- 'E': 500,
- 'F': 600,
- 'G': 700,
- 'H': 800,
- 'I': 900,
- 'J': 1000,
- 'K': 1100,
- 'L': 1200,
- 'M': 1300,
- 'N': 1400,
- 'O': 1500,
- 'P': 1600,
- 'Q': 1700,
- 'R': 1800,
- 'S': 1900,
- 'T': 2000,
- 'U': 2100,
- 'V': 2200,
- 'W': 2300,
- 'X': 2400,
- 'Y': 2500,
- 'Z': 2600,
- ' ': 90
- }
- word = 'SUP DVACH'
- duration = 100
- for w in word:
- winsound.Beep(freq[w], duration)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement