Untitled
unknown
plain_text
a year ago
1.2 kB
15
Indexable
import tkinter as tk
from datetime import datetime
# 🎯 JEE Main January 2027 date (assumed 24 Jan 2027)
target_date = datetime(2027, 1, 24)
# 💪 Motivation lines list
quotes = [
"Hard work beats talent when talent doesn't work hard.",
"Small steps every day = Big success in JEE.",
"Focus on progress, not perfection.",
"JEE is tough, but so are you.",
"Your future self is watching you right now. Work hard!",
"Don’t stop until you’re proud.",
"Discipline is greater than motivation.",
"Winners train, losers complain.",
"Each question solved is a step closer to IIT.",
"Success = Consistency + Patience."
]
def get_daily_quote():
today = datetime.now().timetuple().tm_yday # 1–365 day number
return quotes[today % len(quotes)] # Rotate quotes daily
def update_timer():
now = datetime.now()
diff = target_date - now
days_left = diff.days
hours, remainder = divmod(diff.seconds, 3600)
minutes, seconds = divmod(remainder, 60)
timer_label.config(
text=f"{days_left} Days\n{hours:02}:{minutes:02}:{seconds:02}"
)
quote_label.config(text=get_daily_quote())
timer_lab_
Editor is loading...
Leave a Comment