Skip to content

A fun Python-based GUI application that calculates the friendship percentage between two people.

Notifications You must be signed in to change notification settings

anshkumar2311/Friendship-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Friendship-Calculator

A fun Python-based GUI application that calculates the friendship percentage between two people. This application uses Tkinter for creating the graphical user interface and generates a random percentage representing the strength of friendship between two names.

Features

  • Enter your name and your friend's name.
  • Generate a random friendship percentage between 10% and 100%.
  • The strength of the friendship is categorized as Strong, Moderate, Weak, or Poor based on the percentage.
  • The result is displayed with different colors and emojis to represent the strength visually.

Requirements

  • Python 3.x or higher
  • Tkinter (Usually comes pre-installed with Python)

Installation

How It Works

  • Enter the names of two people in the provided input fields.
  • Click on the "Calculate" button to generate a random percentage.
  • The application will display the friendship percentage and strength, along with the corresponding color and emoji.
  • Friendship Strength Based on Percentage:
    Above 80%: Strong 🌟 (Green)
    50% - 80%: Moderate 😊 (Blue)
    30% - 50%: Weak 😐 (Dark Orange)
    Below 30%: Poor 😞 (Red)

Example Output
The friendship between Ansh and Subham is 85% is Strong 🌟!
Strength: Strong 🌟

Code Explanation

  • The Tkinter library is used to create the graphical user interface.
  • The random library is used to generate a random friendship percentage.
  • Based on the generated percentage, the friendship strength is categorized and displayed using different colors and emojis.

Contributing
Feel free to fork this repository and submit pull requests with improvements or bug fixes.

Contact
For any questions or feedback, you can contact me at [email protected].

Enjoy using the Friendship Percentage Calculator! 🌟
You can modify the content according to your needs. Also, feel free to add any extra details or instructions if required.

About

A fun Python-based GUI application that calculates the friendship percentage between two people.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages