Finish the function · Selesaikan definisi fungsi
Finish the function
The def line is written. Add the one line inside it that gives back a + b.
a and b stand for whatever the caller passes in. Inside the function you use them as ordinary variables — the body is just normal code, indented under the def.
Selesaikan fungsi
Baris def sudah ditulis. Tambahkan satu baris di dalamnya yang mengembalikan a + b.
a dan b mewakili apa pun yang dilemparkan pemanggil. Di dalam fungsi Anda menggunakannya sebagai variabel biasa — isinya hanyalah kode normal, diindentasi di bawah def.
The def line is written. Add the one line inside it that gives back a + b. · Baris def sudah ditulis. Tambahkan satu baris di dalamnya yang mengembalikan a + b.
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.