Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more clarity to "Alphabetically last" exercise #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/part-2/2-else-elif.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Bill and Jean are the same age

<in-browser-programming-exercise name="Alphabetically last" tmcname="part02-07_alphabetically_last" height="500px">

Python comparison operators can also be used on strings. String `a` is smaller than string `b` if it comes alphabetically before `b`. Notice however that the comparison is only reliable if
Python comparison operators can also be used on strings. Each character in Python is represented by a specific number in [Unicode](https://en.wikipedia.org/wiki/Unicode). For example, string `a` (number 97 in decimal representation of Unicode characters) is smaller than string `b` (number 98 in decimal representation of Unicode characters). You can see a list of Unicode characters [here](https://en.wikipedia.org/wiki/List_of_Unicode_characters#Latin_script). Notice however that the comparison is only reliable if
- the characters compared are of the same case, i.e. both UPPERCASE or both lowercase
- only the standard English alphabet of a to z, or A to Z, is used.

Expand Down