🌅 DAY 2 - 19TH MARCH 2026 - Working on AUDIENCE POLL lifeline
Hello! I am Atharv Pathak from India. I am a 14 years old beginner coder learning python. Today was a day which had ups and downs for me. Today I used some logic to add new features to my KBC game.
âś…WHAT I DID
Initially I thought about neatly writing my code using functions as I was using some blocks of code repeatedly 3-4 times in the code, but that did not work and I was facing a lot of issues in incorporating those codes which I used plainly, in the functions {as I am a beginner obviously}.
So I dropped that plan and decided to add Audience poll to the game. This will help the player if he/she does not know the answer. I have designed it using random module and lists. It has a 75% chance of giving the correct answer.
⚠️CHALLENGES
Firstly, I had to change the name of some variables which I used a lot of time in this code because of adding another lifeline.
Then I had to change the input too, guiding the user to use this new lifeline
I had issues in the Invalid Input detection System
Lastly, when I used Audience Poll, interpreter was registering it as Invalid Input and I had to fix it too.
đź§ WHAT I LEARNED
- Learned to use random.choice() with Lists.
- Learned that I have to improve my defining function in python
🚀NEXT GOALS
- Improve the Audience Poll
- Combine the 50-50 lifeline and Audience Poll Lifeline so they can be used
simultaneously
- Add functions of repeated blocks of code