Today is Pi Day*!
I wrote my first Python* script and got 100 brownie point*s for it from Dan Connolly. Here's the chat log:
11:53 PM <AaronSw> def unescapeChars(string): 11:53 PM <AaronSw> i = 0 11:53 PM <AaronSw> out = "" 11:53 PM <AaronSw> if "\\" in string: 11:53 PM <AaronSw> while i<len(string): 11:53 PM <AaronSw> if (string[i:i+2] == "\\\""): 11:53 PM <AaronSw> out = out + "\"" 11:53 PM <AaronSw> i = i + 1 11:53 PM <AaronSw> else: 11:53 PM <AaronSw> out = out + string[i] 11:53 PM <AaronSw> i = i + 1 11:53 PM <AaronSw> else: 11:53 PM <AaronSw> return string 11:53 PM <AaronSw> return out 11:55 PM <DanC> yup. 11:55 PM <DanC> 100 brownie points. cha-ching.
Yay!
a Date
Part of LogicError. Powered by Blogspace, an Aaron Swartz project. Email the webmaster with problems.