aayushi-droid / Python-Thunder

A curated list of Python applications
MIT License
86 stars 158 forks source link

Among Us Imposter Formula #249

Closed shivanshsinghal107 closed 4 years ago

shivanshsinghal107 commented 4 years ago

Before jumping into Pr first comment for assign.All Problem from Edabit. Link is mandatory to add

Problem statement: Create a function that calculates the chance of being an imposter. The formula for the chances of being an imposter is 100 × (i / p) where i is the imposter count and p is the player count. Make sure to round the value to the nearest integer and return the value as a percentage. Problem Link: https://edabit.com/challenge/b36bBpsnzyDbd4mzF


Before submitting a PR please Check some details.Check Edabit for problem task

This repository is vaild for HacktoberFest2020

Read before making PR - How to contribute on Github Good Luck,

shivanshsinghal107 commented 4 years ago

I would like to solve this problem, please assign it to me

huandrey commented 4 years ago

The "imposter (1, 8)" example of the link provided is returning 13%, wouldn't it be 12%? Or is rounding up intentional?

shivanshsinghal107 commented 4 years ago

It's weird why python is doing this, but here is something I found https://stackoverflow.com/questions/51463918/different-results-for-round12-5-on-different-python-versions

huandrey commented 4 years ago

that's weird kkkk but good luck :DD

kakarot2019 commented 4 years ago

It's weird and exciting at the same time. Please assign it to me.I will be more than happy to do this project.

shivanshsinghal107 commented 4 years ago

Hey @kakarot2019, to contribute to this repository you have to pick one problem from edabit site and then create an issue for solving that problem and ask to be assigned for that, after assigned you can work on your problem and submit the PR.

aayushi-droid commented 4 years ago

we are creating and assigning issue to avoid duplicate and spam PR. Thanks for your contributions.