import winsound
print ("The Great Timer")
print("Type in the minutes first than the seconds in float form")
timer_amount_mins = float(input("How long do you want your timer to last in minutes? "))
timer_amount_secs = int(input("How much seconds do you want to add "))
timer_length = int(input("How many beeps do you want? "))
timer_amount_mins *=60
timer_amount = timer_amount_mins + timer_amount_secs
timer_amount = int(timer_amount)
while timer_amount > 0:
print(" ",timer_amount, end = '\r')
timer_amount -= 1
time.sleep(1)
if timer_amount == 0 :
for i in range(timer_length):
print("TIMER UP")
winsound.Beep(2000, 200)
winsound.Beep(1000, 200)
winsound.Beep(500, 200)
time.sleep(0.2)
I want the original text to have italics or bold for effects and is there any other way to produce a nicer sound