Comparing strings

print('car' < 'cat') → True

You can also choose a level by clicking a star.

About the course

Description
Strings are compared character by character by their codes – uppercase letters come before lowercase ones and digits before letters
More information
Working with lists and strings in Python. Indexes start at zero.
Sample question
print('car' < 'cat') → True
Author
Jiří Preisler
Version
1.0