#Python 2, 62 66 - 5 = 61
Improved for bonus using raw_input
.
import re
print' '.join(re.split('(?<=[?!.]).',raw_input())[::-1])
EDIT: Found that I pasted a wrong version of the code so my very first post didn't work. The regex was missing a .
. The byte count was still 62.
#Python 3, 64 - 5 = 59
Shorter since I can use input()
may improve this to allow quotes or parentheses later.
import re
print('print' '.join(re.split('(?<=[?!.]).',input())[::-1]))