Re: Processing in Python
Thanks all of you Regards Salvatore -- http://mail.python.org/mailman/listinfo/python-list
Re: Processing in Python
> He meant it has been re-implemented in Javascript: Indeed :-) There is a jython based NodeBox that runs on windows that can be found > here: > > http://research.nodebox.net/index.php/NodeBoxDev > Thank you -- http://mail.python.org/mailman/listinfo/python-list
Processing in Python
Hello, The Processing Graphics language has been implemented in Javascript. Does anybody tried to make this in Python ? Regards Salvatore http://processing.org/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Compress a string
Try this t = set("bbc") list(t) Regards Salvatore "Matt Porter" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi guys, > > I'm trying to compress a string. > E.g: > "BBBC" -> "ABC" > > The code I have so far feels like it could be made clearer and more > succinct, but a solution is currently escaping me. > > > def compress_str(str): > new_str = "" > for i, c in enumerate(str): > try: > if c != str[i+1]: > new_str += c > except IndexError: > new_str += c > return new_str > > > Cheers > Matt > -- > -- > -- http://mail.python.org/mailman/listinfo/python-list