Introductie tot Python voor Finance
Adina Howe
Associate Professor
Sla info op die je in code kunt gebruiken
msft_stock, interest_rate, bondsinterest_rate = 0.05
Variabelnamen
class of type) en moet je vermijden# Correct
day_2 = 5
# Incorrect, variable name starts with a digit
2_day = 5
$$ \text{Koers-winstverhouding} = \frac{\text{Marktprijs}}{\text{Winst per aandeel}} $$
price = 200 earnings = 5pe_ratio = price / earningsprint(pe_ratio)
40
Introductie tot Python voor Finance