Hi ! In this post I’ll give you a very very simple script and explanation about making Simple CalculatorĀ in Python. Check this out ! Let’s get started with the source code: # proses inisiasi fungsi-fungsi yang akan digunakan: def penjumlahan(x, y): return x + y def pengurangan(x, y): return x – y def perkalian(x, y): return x * y def…
Tag: simple
Tugas 1 Python – Pyramid of Asterisk
Hi everyone ! In this post I’ll give you a very very simple script and explanation about making Pyramid of Asterisk in Python. Check this out ! Let’s get started with the source code: inputan = 5 rows = 0 while(rows < inputan): rows += 1 jumlahSpasi = inputan – rows spasi = 0 while(spasi < jumlahSpasi): print ”…