- Joined
- Sep 12, 2007
- Messages
- 507
- Reaction score
- 38
I made one of these to play around with, I decided to put it up here. Its an extremely simple program, but will provide a few minutes of entertainment..
So yea, if you really want it, here's the code.
K cool, pc.
So yea, if you really want it, here's the code.
Code:
import winsound
def welcome():
print("Wecome to Freq-Tester!")
setop()
def setop():
what = int(input("\nWhat frequency would you like to hear: "))
time = int(input("How long would you like it to last in seconds: "))
if what <= 36 or what > 32767:
print("Frequency must be between 37 and 32767")
setop()
if what == "credits" or time == "credits":
print("Program made by Jordan Ludgate!")
print("In Python 2.7.3!")
setop()
else:
finaltime = time * 1000
Freq = what
Dur = finaltime
winsound.Beep(Freq,Dur)
setop()
welcome()
K cool, pc.