Today's challenge requires you to calculate one's running pace.
For example:
runningPace(distance, time)
distance - A float with the number of...
For further actions, you may consider blocking this person and/or reporting abuse
Here it goes!
Python
Not brilliant but...
Here is the simple solution with JavaScript:
Python :
Ruby <3
function runningPace(distance, time){
const dist = distance * 1000; //in meters
const timeInSecond =parseInt(time.split(':')[0]) * 60 + parseInt(time.split(':')[1]); //in seconds
const pace = dist / timeInSecond;
return pace
I know these don't get many likes, but I really appreciate these. Like really appreciate them!