Exemple #1
0
import kalkulator as k

print k.tambah(100, 20)
print k.kurang(100, 20)
print k.kali(100, 20)
print k.bagi(100, 20)

Exemple #2
0
from kalkulator import tambah, kurang

print tambah(10, 20)
print kurang(10, 20)
print kali(10, 20) # error!

Exemple #3
0
import kalkulator

print kalkulator.tambah(100, 20)
print kalkulator.kurang(100, 20)
print kalkulator.kali(100, 20)
print kalkulator.bagi(100, 20)

Exemple #4
0
from kalkulator import tambah, kurang

print tambah(10, 20)
print kurang(10, 20)
print kali(10, 20)  # error!