Created
April 7, 2022 01:26
-
-
Save triyono777/6a554411b0ab29f695e1ffc03eb1718b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# operator perbandingan | |
# > lebih dari | |
# < kurang dari | |
# >= lebih dari sama dengan | |
# <= kurang dari sama dengan | |
# == sama dengan | |
# != tidak sama dengan | |
# semua hasil diatas akan menghasilkan boolean (True / False) | |
print(5 < 7) | |
a = 5 > 8 | |
print(a) | |
print(8>=8) | |
a = 20 | |
hasil = 5*4 | |
print(hasil==a) | |
print(hasil!=a) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment