#This is a program to make a simple alarm
#The python time library is used
#We are going to open a youtube page to act as an alarm




import time             #Import time module
import webbrowser   #import webbrowesr module

d=input("Whether time will bw entered in Hours, Minutes or Seconds") #Prompt the user 

if d=="Hours":
    temp=int(input("Enter the no of hours")) 
    t=temp*3600                                      #convert hours to seconds for the time module
    time.sleep(t)                                        #sleep function to halt the program
elif d=="Minutes":
    temp=int(input("Enter no of minutes"))
    t=temp*60                                           #convert to seconds
    time.sleep(t)
elif d=="Seconds":
    temp=int(input("Enter the no of seconds"))
    t=temp
    time.sleep(t)
url="https://www.youtube.com/watch?v=9SKFwtgUJHs"  #Enter the url as a variable
webbrowser.open(url,new=2)               #the open function to open the default browser
                                                       # the 'new=2' will open the video in a new tab 

415090463aba37f362b484a454537dda2845c09a
<mask token>

<mask token>
if d == 'Hours':
    temp = int(input('Enter the no of hours'))
    t = temp * 3600
    time.sleep(t)
elif d == 'Minutes':
    temp = int(input('Enter no of minutes'))
    t = temp * 60
    time.sleep(t)
elif d == 'Seconds':
    temp = int(input('Enter the no of seconds'))
    t = temp
    time.sleep(t)
<mask token>
webbrowser.open(url, new=2)

<mask token>
d = input('Whether time will bw entered in Hours, Minutes or Seconds')
if d == 'Hours':
    temp = int(input('Enter the no of hours'))
    t = temp * 3600
    time.sleep(t)
elif d == 'Minutes':
    temp = int(input('Enter no of minutes'))
    t = temp * 60
    time.sleep(t)
elif d == 'Seconds':
    temp = int(input('Enter the no of seconds'))
    t = temp
    time.sleep(t)
url = 'https://www.youtube.com/watch?v=9SKFwtgUJHs'
webbrowser.open(url, new=2)

import time
import webbrowser
d = input('Whether time will bw entered in Hours, Minutes or Seconds')
if d == 'Hours':
    temp = int(input('Enter the no of hours'))
    t = temp * 3600
    time.sleep(t)
elif d == 'Minutes':
    temp = int(input('Enter no of minutes'))
    t = temp * 60
    time.sleep(t)
elif d == 'Seconds':
    temp = int(input('Enter the no of seconds'))
    t = temp
    time.sleep(t)
url = 'https://www.youtube.com/watch?v=9SKFwtgUJHs'
webbrowser.open(url, new=2)

#This is a program to make a simple alarm
#The python time library is used
#We are going to open a youtube page to act as an alarm




import time             #Import time module
import webbrowser   #import webbrowesr module

d=input("Whether time will bw entered in Hours, Minutes or Seconds") #Prompt the user 

if d=="Hours":
    temp=int(input("Enter the no of hours")) 
    t=temp*3600                                      #convert hours to seconds for the time module
    time.sleep(t)                                        #sleep function to halt the program
elif d=="Minutes":
    temp=int(input("Enter no of minutes"))
    t=temp*60                                           #convert to seconds
    time.sleep(t)
elif d=="Seconds":
    temp=int(input("Enter the no of seconds"))
    t=temp
    time.sleep(t)
url="https://www.youtube.com/watch?v=9SKFwtgUJHs"  #Enter the url as a variable
webbrowser.open(url,new=2)               #the open function to open the default browser
                                                       # the 'new=2' will open the video in a new tab 
