BaşlayınÜcretsiz Başlayın

Comparing dividends

Dividends are payments made to stockholders, usually from profits that are not re-invested in a company. It is important to identify which stocks are paying higher dividends when analyzing how to balance stocks in a portfolio. Let's say that in your role analyzing a client's portfolio, you are tasked with comparing dividends from different holdings. The values of these dividends are provided in the variables d1 and d2.

Bu egzersiz

Intermediate Python for Finance

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Check dividend is greater than zero
print(____ ____ ____)

# Is dividend 1 is greater than dividend 2?
print(____ ____ ____)
Kodu Düzenle ve Çalıştır