Unleash Your Inner 'Friends' Character with Python: A Fun Personality Quiz Project
Ragavi Muthukrishnan
Grad Student at University at Buffalo SUNY | Masters in Engineering Science Data Science | AI & Data Enthusiast
Who doesn’t love the classic sitcom Friends? The show gave us six unforgettable characters, each with unique quirks and traits. But here’s the big question: Which Friends character are YOU most like?
I’ve created a Python-powered interactive web app that helps you find out—and it’s so much more than just a fun quiz. It’s a showcase of how Streamlit and pyngrok can bring simple yet delightful applications to life.
What I Built
This project is a personality quiz that asks you six fun questions about your preferences, habits, and quirks. Based on your answers, it calculates your personality type and matches you with one of the six Friends characters:
Each character has unique traits and a color-coded results page that highlights their key attributes. It’s a delightful experience that not only brings smiles but also demonstrates the power of modern Python libraries.
How the App Works
1. Streamlit for the Front-End
Streamlit’s simplicity allows you to create stunning web apps with minimal effort. The quiz layout includes:
2. Dynamic Scoring Logic
Each answer corresponds to a character, and the app keeps track of your choices to determine the best match:
scores = {char: 0 for char in character_info.keys()}
if answer in options[0]:
scores['Chandler'] += 1
# Repeat for other characters
3. Hosting Made Easy with Pyngrok
Thanks to pyngrok, sharing the app is a breeze. It creates a public URL for your local Streamlit app so you can share it with your friends or on social media:
领英推荐
from pyngrok import ngrok
public_url = ngrok.connect(8501)
print(f"Your app is live at: {public_url}")
Key Learnings from This Project
This project wasn’t just about building a fun quiz; it was an opportunity to:
What More Can Be Done?
This is just the beginning! Here are some ideas to make the app even better:
Final Thoughts
This project was an exciting way to blend creativity and technology. By using Python, Streamlit, and pyngrok, I’ve built something that brings smiles and sparks conversation—proving that coding can be both fun and impactful.
If you’re a developer looking to try something lighthearted or a Friends fan ready to discover your character match, this project is for you! You can check out the complete code on my GitHub repository - here.
Try building it yourself or share your thoughts. I’d love to hear what you think and how you’d make it your own.
What do you think of this project? Would you like to collaborate or see more features added? Let’s connect and create more fun tech projects together!