Skip to main content
3 of 5
Rollback to Revision 1
mbomb007
  • 23.5k
  • 7
  • 63
  • 135

#Python 2, 62

I may improve this to allow quotes or parentheses later.

import re
print' '.join(re.split('(?<=[?!.])',input())[::-1])
mbomb007
  • 23.5k
  • 7
  • 63
  • 135