Python as a calculator
Python is perfectly suited to do mathematical calculations. It can do addition, subtraction, multiplication and division, to name a few.
Now it's your turn to practice doing math in Python!
Diese Übung ist Teil des Kurses
Introduction to Python for Finance
Anleitung zur Übung
Complete the following tasks by replacing ____ with the correct Python code:
- Print the sum of
4and5. - Print the result of subtracting
5from5. - Print the result of multiplying
3and5. - Print the result of dividing
10by2.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Addition
____
# Subtraction
____
# Multiplication
____
# Division
____