Mines bigger than yours Comparing strings

When you're working with numbers, it's usually obvious what the smallest and largest numbers are. But it's less clear what smallest and largest mean when you're talking about characters.

TECHNICAL A character's ASCII or Unicode value (a number) determines the STUFF character's order. So it would also be correct to talk about one character coming "before" (smaller) or "after" (larger) another character in a numbered list of characters. The following list describes how Python orders (assigns sizes to) characters:

Was this article helpful?

0 0

Post a comment