Re: TWG CXXXVI - An Extended Sonic Universe Fanfic by Ronnie Darkshadow GAME THREAD
Code:
Sample Input:
Sample Output:
Code:
Code:
f = open('aaron.in', 'r')
message = ""
for line in f:
for word in line.split():
lengths = [len(part)for part in word.split("-")]
word = [part for part in word.split("-") if len(part) == max(lengths)][0]
message += word + " "
print message
Code:
TWG Peter Hedgehog. I-I d-d-d-don't like y-you much at-t all. Take t-that, you nasty f-f-fool. W-what'll-ll you d-do a-a-about that-t? B-but I'm t-tired and I n-need some wa-wa-water.
Code:
TWG Peter Hedgehog. I don't like you much at all. Take that, you nasty fool. what'll you do about that
but I'm tired and I need some water.
... my heart can't take it
if you're into that sort of thing, because I sure am.

Comment