This commit is contained in:
Syed Mustafa Hassan 2025-03-29 23:06:42 +00:00 committed by GitHub
commit 5ae647456d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

14
Simple_Counter_App.py Normal file
View File

@ -0,0 +1,14 @@
import datetime
user_input = input("Enter your goal with a deadline separatedby colon\n")
input_list = user_input.split(":")
# goal = input_list[0]
deadline = input_list[0]
deadline_date = datetime.datetime.strptime(deadline, "%d.%m.%Y")
today_date = datetime.datetime.today()
time_till = deadline_date - today_date
hours_till = int(time_till.total_seconds()/ 60/ 60)
print(f"Dear User! Time remanning for your goal : {goal} is {hours_till} hours")