|
| 1 | +print("🐦🔥 PRODUCTIVITY PET 🐦🔥") |
| 2 | +print("Track your tasks and hatch your pet!\n") |
| 3 | + |
| 4 | +import random |
| 5 | + |
| 6 | +while True: |
| 7 | + user = input("➡️ Did you complete your tasks today? (yes/no): ").lower().strip() |
| 8 | + |
| 9 | + if user in ["yes", "yeah", "yep"]: |
| 10 | + |
| 11 | + count = input("📝 How many tasks were in your list? ").strip() |
| 12 | + |
| 13 | + if not count.isdigit() or int(count) <= 0: |
| 14 | + print("⚠️ Please enter a valid number.\n") |
| 15 | + continue |
| 16 | + |
| 17 | + count = int(count) |
| 18 | + tasks = [] |
| 19 | + for i in range(count): |
| 20 | + task = input(f" Task {i+1}: ") |
| 21 | + tasks.append(task) |
| 22 | + |
| 23 | + done = input("✅ How many did you complete? ").strip() |
| 24 | + |
| 25 | + if not done.isdigit(): |
| 26 | + print("⚠️ Please enter a valid number.\n") |
| 27 | + continue |
| 28 | + |
| 29 | + done = int(done) |
| 30 | + |
| 31 | + if done < 0 or done > count: |
| 32 | + print("⚠️ That doesn't seem right. Try again.\n") |
| 33 | + continue |
| 34 | + |
| 35 | + percentage = (done / count) * 100 |
| 36 | + print(f"\n📊 Progress: {percentage:.1f}%") |
| 37 | + |
| 38 | + pets = ["🐦", "🐧", "🦇", "🦤", "🦆", "🦅"] |
| 39 | + pet = random.choice(pets) |
| 40 | + |
| 41 | + if percentage < 50: |
| 42 | + print("😔 The pet didn't hatch. Current stage: 🥚") |
| 43 | + print("💡 Try completing more tasks tomorrow!\n") |
| 44 | + elif percentage < 80: |
| 45 | + print("🐣 Getting there! Current stage: 🐣") |
| 46 | + print("💪 Almost hatched — keep going!\n") |
| 47 | + else: |
| 48 | + print(f"🎉 Congratulations! Your pet hatched: {pet}") |
| 49 | + print("🏆 Amazing work today!\n") |
| 50 | + |
| 51 | + elif user in ["no", "nope", "nah"]: |
| 52 | + print("💬 No worries! Come back when you're done.\n") |
| 53 | + |
| 54 | + else: |
| 55 | + print("⚠️ Please answer yes or no.\n") |
| 56 | + continue |
| 57 | + |
| 58 | + again = input("🔄 Track another day? (y/n): ").lower().strip() |
| 59 | + if again != "y": |
| 60 | + break |
| 61 | + |
| 62 | +print("\n👋 Thanks for using Productivity Pet! Keep hatching! 🐦🔥\n") |
0 commit comments