0

How do i calculate the Time it takes to travel (python)

I want to know how i calculate the travel time if i, for example, drive 40 Kilometer per hour and the travel distance is 130 kilometer (sorry for my very bad english, i hope you understand what i mean because english is not my first language)

26th Feb 2021, 7:03 PM
Betonmischer
Betonmischer - avatar
7 Answers
+ 2
Thank you all, this is a great Community. The Problem is solved now
26th Feb 2021, 7:12 PM
Betonmischer
Betonmischer - avatar
+ 1
Time = distance/speed
26th Feb 2021, 7:05 PM
Jayakrishna 🇮🇳
Jayakrishna 🇮🇳 - avatar
+ 1
You're Welcome..
26th Feb 2021, 7:06 PM
Jayakrishna 🇮🇳
Jayakrishna 🇮🇳 - avatar
+ 1
example: dist=130 speed=40 time=dist/speed
26th Feb 2021, 7:10 PM
Wilbur Jaywright
Wilbur Jaywright - avatar
+ 1
speed = distance / time(for it) => time = distance / speed time_x = 120 [km] / 40 [km/h] = 3 [h] (hour)
26th Feb 2021, 7:11 PM
JaScript
JaScript - avatar
0
Thank you!
26th Feb 2021, 7:06 PM
Betonmischer
Betonmischer - avatar
0
I have auto translated for your convenience. I hope it helps: Das ist sehr grundlegende Mathematik. Python-Matheoperatoren sind sehr einfach. Sie können das Problem so ziemlich wie in einem Rechner eingeben, außer... nun, ein Schrägstrich ist Teilung, und ein Sternchen ist Multiplikation. Ein doppeltes Sternchen ist für Exponenten.
26th Feb 2021, 7:08 PM
Wilbur Jaywright
Wilbur Jaywright - avatar