Pass or fail · Lulus atau gagal
Pass or fail
mark is 47. Print pass when the mark is 50 or more, and fail otherwise.
else catches everything the if did not. It takes no condition of its own — just else: — and its own indented line underneath.
Lulus atau gagal
mark adalah 47. Cetak pass ketika nilainya 50 atau lebih, dan fail untuk kondisi lainnya.
else menangkap segala sesuatu yang if tidak tangkap. Ia mengambil tidak ada kondisinya sendiri — hanya else: — dan garis indented miliknya di bawahnya.
mark is 47. Print pass when the mark is 50 or more, and fail otherwise. · mark adalah 47. Cetak pass ketika nilainya 50 atau lebih, dan fail untuk kondisi lainnya.
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.