Good morrow, guys!
Used this code from a textbook and can't find the error. It seems like something at the beginning already, but I cant figure it out.
Code:
Used this code from a textbook and can't find the error. It seems like something at the beginning already, but I cant figure it out.
Code:
i=10
j=15
if(i==j):
print("i is equal j")
else:
print("i is not equal to j")
if(i!=i):
print("i is not equal to j")
else:
print("i is equal to j")
if(i>j)
print("i is greater than j")
else:
print("i is not greater than j")
if(i<j)
print("i is less than j")
if(i>=j)
print("i is greater than or equal to j")
else:
print("i is neither greater than nor equal to j")
if(i<=j)
print("i is less than or equal to j")
else:
print("i is neither less than or equal to j")Many thanks everyone!
