BaşlayınÜcretsiz Başlayın

The long and the short of why time is hard

Out of 291 trips taken by W20529, how long was the longest? How short was the shortest? Does anything look fishy?

As before, data has been loaded as onebike_durations.

Bu egzersiz

Working with Dates and Times in Python

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Calculate shortest_trip from onebike_durations.
  • Calculate longest_trip from onebike_durations.
  • Print the results, turning shortest_trip and longest_trip into strings so they can print.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Calculate shortest and longest trips
shortest_trip = ____(____)
longest_trip = ____(____)

# Print out the results
print("The shortest trip was " + ____ + " seconds")
print("The longest trip was " + ____ + " seconds")
Kodu Düzenle ve Çalıştır