Pyhton dasar #5: Boolean


Boolean adalah kondisi yang hanya mengenal true and false atau benar dan salah

# contoh boolean

cewe = True
cowo = False

print(cewe)
print(cowo)

Hasil output

PS C:\Users\ASUS> & python e:/Python/sample.py
True
False






Post a Comment

0 Comments