Easy
Take the Last One Off
Read a list of words. Remove the last word with
pop(), print it, then print the remaining words on one line.Input
Words separated by spaces (at least 2).
Output
Two lines.
Sample 1
Input
tea coffee milk
Output
milk tea coffee
Sample 2
Input
a b
Output
b a
Output appears here