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

Basic calculations

Like MATLAB, you can use Python to perform basic calculations. Most of the standard operators are similar between MATLAB and Python.

Addition +
Subtraction -
Multiplication *
Division /
Exponentiation **

One crucial difference is the operator for taking a number to a power. In Python, the ^ operator does something else entirely… you'll need to make sure you use ** when you want to square a number.

Bu egzersiz

Python for MATLAB Users

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Print 2 minus 3
print(____)
Kodu Düzenle ve Çalıştır