Introduction à Python pour la finance

Introduction à Python pour la finance

Adina Howe

Professor

À venir…

histogramme

Ratio C/B

Introduction à Python pour la finance

Pourquoi Python pour la finance ?

  • Facile à apprendre et flexible
    • À usage général
    • Dynamique
    • Langage de haut niveau
  • S'intègre à d'autres langages
  • Code source ouvert
    • Accessible à tous

 

logo Python

Introduction à Python pour la finance

$$ Capture d'écran Datacamp

Introduction à Python pour la finance

Opérateurs mathématiques courants

Opérateur Signification
+ Ajouter
- Soustraire
* Multiplier
/ Diviser
% Modulo (reste de la division)
** Exposant
Introduction à Python pour la finance

Opérateurs mathématiques courants

# Print the sum of 8 and 4
print(8 + 4)
12
# Print 8 divided by 4
print(8 / 4)
2
  • Utilisez explicitement print()
Introduction à Python pour la finance

Des commentaires ?

# Print 8 divided by 2
print(8 / 2)

# Print 2 raised to the power of 2
print(2**2)

# Print 1.0 add 0.10
print(1.0 + 0.10)
Introduction à Python pour la finance

Passons à la pratique !

Introduction à Python pour la finance

Preparing Video For Download...