datetime 비교하기
2008년의 격동적인 서브프라임 사태를 이해하려고 한다고 가정해 봅시다. 몇 가지 중요한 날짜에 해당하는 datetime이 주어져 있어요. 여기에는 리먼 브라더스의 파산 선언, TARP 법안 통과, 그리고 Goldman Sachs와 Morgan Stanley의 투자은행 부문 철수 시점이 포함됩니다.
이 연습은 강의의 일부입니다
금융을 위한 중급 Python
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Lehman Brothers before Morgan Stanley?
lehman_first = lehman ____ morgan_stanley
print(f"It is {lehman_first} that Lehman Brothers declared bankruptcy first.")