aayushi-droid / Python-Thunder

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

Volume of a Spherical Shell #36

Closed vivekkj123 closed 3 years ago

vivekkj123 commented 3 years ago

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

Problem statement: The volume of a spherical shell is the difference between the enclosed volume of the outer sphere and the enclosed volume of the inner sphere:

Volume of Inner Sphere Formula

Create a function that takes r1 and r2 as arguments and returns the volume of a spherical shell rounded to the nearest thousandth.

Examples

vol_shell(3, 3) ➞ 0

vol_shell(7, 2) ➞ 1403.245

vol_shell(3, 800) ➞ 2144660471.753

Notes

The inputs are always positive numbers. r1 could be the inner radius or the outer radius, don't return a negative number. Problem Link: https://edabit.com/challenge/iBqJcagS56wmDpe4x


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,

vivekkj123 commented 3 years ago

@aayushi-droid Assign this issue to me...

AdeshChoudhar commented 3 years ago

I would like to work on this.

Avhijit-codeboy commented 3 years ago

Please assign this issue to me.

raph941 commented 3 years ago

i would love to work on this project

aawizard commented 3 years ago

I would like to solve this problem

Gautam-virmani commented 3 years ago

I would love to work on this and I am good at problem-solving. I also have a gold badge on hackerrank in problem-solving. You can check that out here:https://www.hackerrank.com/Gvirmani1505.

ritamganguli commented 3 years ago

Sir submitted a pull request a spherical 100% working it doesn't return a negative value please kindly consider it

vivekkj123 commented 3 years ago

@aayushi-droid Please review and the merge the Pull request #148 ,

Thanks,

VIVEK K J