We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b42328 commit 31c2e33Copy full SHA for 31c2e33
distance_calculator.py
@@ -12,6 +12,7 @@
12
13
# Main loop
14
while True:
15
+ print("Welcome to the distance calculator v1.0.1!")
16
use_program=input("Do you want to calculate the distance between two points? (yes/no): ")
17
if use_program.lower() == "yes":
18
pass
@@ -68,4 +69,4 @@
68
69
70
# The calculation
71
distance = math.sqrt(math.pow(startX - endX, 2) + math.pow(startY - endY, 2))
- print(f"The distance between ({startX}, {startY}) and ({endX}, {endY}) is {distance} units.")
72
+ print(f"The distance between ({startX}, {startY}) and ({endX}, {endY}) is {distance} units.")
0 commit comments