0
it will be possible
python is not possible to differentiate between which letter is larger than the other by the alphabet as py = a if py == <b: print ("hi") else: print ("not")
2 odpowiedzi
+ 4
It is possible to compare letters.
Python assumes that a and b are variables.
Because you haven't declared variables a and b, Python raises an error.
To compare letters you need to use quotes to create strings. Strings are objects that are specialized for handling text.
You can run:
py = "a"
if py == "b":
print("hi")
else:
print("not")
And this would print "not".