Untitled
unknown
plain_text
5 months ago
713 B
3
Indexable
import time def do_pushups(target_pushups): total_pushups = 0 sets = [ (10, 'Morning'), (10, 'Morning'), (10, 'Morning'), (15, 'Midday'), (15, 'Midday'), (20, 'Evening'), (20, 'Evening') ] print(f"Today's goal: {target_pushups} pushups!") for pushups, time_of_day in sets: input(f"\nIt's {time_of_day}, time to do {pushups} pushups! Press Enter when ready.") total_pushups += pushups print(f"You've completed {total_pushups} pushups so far!") time.sleep(2) # Pause for 2 seconds before next set print("\nCongratulations! You've completed your 100 pushups for the day!") # Start the pushup challenge do_pushups(100)
Editor is loading...
Leave a Comment