Aan de slagGa gratis aan de slag

Creating numeric variables

Mastering variables is essential for effective coding and problem-solving in Python. By assigning values to variables, you can easily reference and update these objects throughout your code. This approach not only makes your code more organized and readable but also enhances its flexibility, allowing for quick adjustments and clear data handling.

Deze oefening maakt deel uit van de cursus

Introduction to Python for Finance

Cursus bekijken

Oefeninstructies

  • Assign 229.23 to the variable revenue_1.
  • Assign 177.86 to the variable revenue_2.
  • Assign 89.95 to the variable revenue_3.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Assign 229.23 to revenue_1
____

# Assign 177.86 to revenue_2
____

# Assign 89.95 to revenue_3
____
Code bewerken en uitvoeren