LoslegenKostenlos loslegen

Finding the average revenue

Variables can be used to store information and efficiently recover and manipulate stored values.

The revenue of three companies have been stored in three variables: revenue_1, revenue_2, and revenue_3. Let's calculate the total revenue and the average revenue of these companies.

Diese Übung ist Teil des Kurses

Introduction to Python for Finance

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Create the variable total and print the total revenue
total = ____
print(total)
Code bearbeiten und ausführen