FAQ  •  Login

Level 2 - better way?

Moderators: UncleTimmy, mjpieters

Enjoying the challenge? Need a hint?
Make a donation and help keep the site running! -thesamet


Posts: 3

Joined: Wed May 04, 2005 11:43 am

Post Wed May 04, 2005 2:49 pm

Level 2 - better way?

Looking to learn here. I solved it but did a little brute force doing it, which I'm sure is incorrect. Anyone got a better solution they're willing to share to help us all learn?

#First, saved text out to a file so I could view it easier.
#Read in file contents.
MyFile = file("C:/MyFile.txt", "r")
LongString = MyFile.read()

#spoilers follow in ROT-13:

cevag ybatfgevat.genafyngr(fgevat.znxrgenaf("!@#$%^&*()+[]{}_\n"," ")).ercynpr(" ","")


Posts: 1

Joined: Thu May 05, 2005 11:52 am

Post Thu May 05, 2005 12:08 pm

*** Spoilers ***

Knowing that the answer would likely be text (using that intuition that sometimes makes us better than machines), I did the equivalent of s/[^a-z]//mig.

Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.