RelasiDemo.py

#!/usr/bin/env python3
#Filename: RelasiDemo.py
#Created by: Ronald Stevens

#Nilai variabel
i = 37
j = 42
k = 42

print("Nilai variabel...")
print("i = ",i)
print("j = ",j)
print("k = ",k)

print("Lebih besar dari...")
print("i > j = ",i>j)
print("j > i = ",j>i)
print("k > j = ",k>j)

print("Lebih besar dari atau sama dengan...")
print("i >= j = ",i>=j)
print("j >= i = ",j>=k)
print("k >= j = ",k>=j)

print("Lebih kecil dari...")
print("i < j = ",i<j)
print("j < i = ",j<i)
print("k < j = ",k<j)

print("Lebih kecil atau sama dengan...")
print("i <= j = ",i<=j)
print("j <= i = ",j<=i)
print("k <= j = ",k<=j)

print("Sama dengan...")
print("i == j = ",i==j)
print("k == j = ",k==j)

print("Tidak sama dengan...")
print("i != j = ",i!=j)
print("k != j = ",k!=j)
Both comments and trackbacks are currently closed.
%d blogger menyukai ini: