Finance를 위한 Python 입문
Adina Howe
Professor
코드에서 참조할 수 있는 정보를 저장
msft_stock, interest_rate, bondsinterest_rate = 0.05
변수 이름
class, type 등)로 사용 비권장# Correct
day_2 = 5
# Incorrect, variable name starts with a digit
2_day = 5
$$ \text{Price to earning ratio} = \frac{\text{Market price}}{\text{Earnings per share}} $$
price = 200 earnings = 5pe_ratio = price / earningsprint(pe_ratio)
40
Finance를 위한 Python 입문