+ 1
Why can't we use relational operator with two strings while making a conditional statement ? (In Python 3x)
2 Answers
+ 5
if im not sure if this is what you are referring to, but im pretty sure you can in python 3x
i found this on the geeksforgeeks website.
print("Geek" == "Geek")
print("Geek" < "geek")
print("Geek" > "geek")
print("Geek" != "Geek")
Output:
True
True
False
False
+ 3
Can you give an example?