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")

11th Dec 2019, 9:27 PM
Mateo García
Mateo García - avatar
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".
11th Dec 2019, 9:41 PM
Seb TheS
Seb TheS - avatar