Tagged: string-comparison
Everything tagged "string-comparison", newest first.
Python Coding Exercise #41: Alphabetically in the Middle
A beginner Python exercise on comparing strings and chained comparisons — find which of three letters would be in the middle in alphabetical order, and compare a chained-comparison solution with a nested if solution.
Python Coding Exercise #35: Alphabetically Last
A beginner Python exercise on comparing strings — find which of two words comes last in alphabetical order, and learn how Python compares text, including the effect of uppercase letters.