Order two Strings

Write a program that reads several pairs of strings, and prints each
pair in lexicographic order.

Recall that the comparison operator < in Python is defined for strings
as the lexicographic order, that is, the expression s < t evaluates to
True if s is lexicographically smaller than t.

Input

The input has several cases, each consisting of a pair of strings s and
t.

Output

For each case, you have to write a line with s and t in lexicographical
order, separated by a whitespace

Problem information

Author: AP1

Generation: 2026-01-25T17:26:59.900Z

© Jutge.org, 2006–2026.
https://jutge.org
