- # Define the starting point (point A) and destination (point B)
- point_a = (0, 0)
- point_b = (100, 200)
- # Define the speed of the car in miles per hour
- speed = 50
- # Calculate the distance between point A and point B
- distance = ((point_b[0] - point_a[0]) ** 2 + (point_b[1] - point_a[1]) ** 2) ** 0.5
- # Calculate the time it will take the car to travel from point A to point B
- time = distance / speed
- # Print the time it will take the car to travel from point A to point B
- print("The car will take {:.2f} hours to travel from point A to point B.".format(time))
Tools
- Sandbox
- Paste Code
- Snippets
- Generators
- Checks
- Convertors
[text] car travelling from pint A to point B
Viewer
Editor
Share
Do you find this tool useful? Then share it with your friends or colleagues. This will help us to make our free web tools better.
You can edit this paste and save as new:
Information about embedding
In order to embed this content into your website or blog, simply copy and paste one of the codes provided below.
1. JavaScript Embedding (shows full code, full height depending on amount of lines in paste)
<script src="https://wtools.io/code/embed-js/bKLj"></script>
2. Iframe Embedding (you can set the frame height by adding the CSS value 'height:100px;' for example)
<iframe src="https://wtools.io/code/embed-iframe/bKLj" style="border:none;width:100%"></iframe>