MulaiMulai sekarang secara gratis

Comparing datetimes

Imagine that you are trying to understand the events that made up the turbulent subprime crisis of 2008. You have a datetimes for some important dates. These include Lehman Brothers declaring bankruptcy, the passage of the TARP bill, and the movement of Goldman Sachs and Morgan Stanley out of investment banking.

Latihan ini adalah bagian dari kursus

Intermediate Python for Finance

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Lehman Brothers before Morgan Stanley?
lehman_first = lehman ____ morgan_stanley

print(f"It is {lehman_first} that Lehman Brothers declared bankruptcy first.") 
Edit dan Jalankan Kode