![]() You are trying to compare apples with oranges in you time comparison: > import time Time_input = str(raw_input("Please enter the time in HH:MM:SS format: "))Ĭurrent_date = str(raw_input("Please enter the date in YYYY/MM/DD format: ")) Lines = open("C:\Python_code\Links.txt").read().splitlines() ![]() I have to set time whatever I want in any format and at that particular time program will pick a random link from those which are saved in the file and start playing.īut in the if else part my program is falling in a infinite loop.Ĭan anyone please review my code where I am doing mistakes. I am writing a python code for implementing an alarm clock where I am putting some YouTube links in text file and the program will read the file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |