Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
Distance to time
0
Author: Boay.JS
Dark
Public
Save
PY
py
1
2
3
4
distance=
int
(
input
())
velocity=
(
40
,
60
)
# 40km/60mins
time=
(
distance*velocity
[
1
])
/velocity
[
0
]
print
(
time
)
Enter to Rename, Shift+Enter to Preview
OUTPUT