Advertisement
Guest User

Untitled

a guest
Dec 11th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import winsound
  2.  
  3. freq = {
  4. 'A': 100,
  5. 'B': 200,
  6. 'C': 300,
  7. 'D': 400,
  8. 'E': 500,
  9. 'F': 600,
  10. 'G': 700,
  11. 'H': 800,
  12. 'I': 900,
  13. 'J': 1000,
  14. 'K': 1100,
  15. 'L': 1200,
  16. 'M': 1300,
  17. 'N': 1400,
  18. 'O': 1500,
  19. 'P': 1600,
  20. 'Q': 1700,
  21. 'R': 1800,
  22. 'S': 1900,
  23. 'T': 2000,
  24. 'U': 2100,
  25. 'V': 2200,
  26. 'W': 2300,
  27. 'X': 2400,
  28. 'Y': 2500,
  29. 'Z': 2600,
  30. ' ': 90
  31. }
  32.  
  33. word = 'SUP DVACH'
  34.  
  35. duration = 100
  36.  
  37. for w in word:
  38. winsound.Beep(freq[w], duration)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement