summaryrefslogtreecommitdiff
path: root/progs/a3.py
blob: 3938b7a4162679968442c4c5803372e28f2cce68 (plain)
1
2
def reverse_words(s):
        return ' '.join(reversed(s.split()))