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

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!

Bu egzersiz

Introduction to Python for Finance

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

Egzersiz talimatları

Complete the following tasks by replacing ____ with the correct Python code:

  • Print the sum of 4 and 5.
  • Print the result of subtracting 5 from 5.
  • Print the result of multiplying 3 and 5.
  • Print the result of dividing 10 by 2.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Addition
____

# Subtraction
____

# Multiplication
____

# Division
____
Kodu Düzenle ve Çalıştır