Basic-Python-Programs
Basic-Python-Programs copied to clipboard
Add distance_calculator
I'd like to add a distance calculation program i made
@souravjain540 please review
The code works for positive integers but doesn't accept negative points (ex: (-2,0)). In addition, there should be a way to break out of the while loop, such as inputting a sentinel value.
Ok I will try to fix it, and thanks for telling 👍
Edit: I fixed the bug and it was actually really easy. I just replaced every .isdigit() with .isalpha()
Looks good!
Thanks! I also fixed a bug where decimal numbers were incompatible.